// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using TMPro; using UnityEngine; using UnityEngine.UI; namespace Microsoft.MixedReality.Toolkit.Experimental.UI { /// /// Represents a key on the keyboard that has a string value for input. /// [RequireComponent(typeof(Button))] public class KeyboardValueKey : MonoBehaviour { /// /// The default string value for this key. /// [Experimental] public string Value; /// /// The shifted string value for this key. /// public string ShiftValue; /// /// Reference to child text element. /// private TextMeshProUGUI m_Text; /// /// Reference to the GameObject's button component. /// private Button m_Button; /// /// Get the button component. /// private void Awake() { m_Button = GetComponent