NonNativeValueKey Class

Definition

Class representing a value key in the non native keyboard

C#
public class NonNativeValueKey : MixedReality.Toolkit.UX.Experimental.NonNativeKey
Inheritance
UnityEngine.MonoBehaviour
NonNativeValueKey

Remarks

This is an experimental feature. This class is early in the cycle, it has been labeled as experimental to indicate that it is still evolving, and subject to change over time. Parts of the MRTK, such as this class, appear to have a lot of value even if the details haven't fully been fleshed out. For these types of features, we want the community to see them and get value out of them early enough so to provide feedback.

Constructors

Properties

CurrentValue

The current string value of this value key. Note the value may change based on the shift status of the keyboard.

DefaultValue

The default string value for this key.

Interactable

Reference to the GameObject's interactable component.

(Inherited from NonNativeKey)
KeyButton

Reference to the GameObject's button component. Used if there is no StatefulInteractable.

(Inherited from NonNativeKey)
ShiftedValue

The shifted string value for this key.

Methods

Awake()

A Unity event function that is called when an enabled script instance is being loaded.

FireKey()

Function executed when the key is pressed.

OnDestroy()

A Unity event function that is called when the script component has been destroyed.

(Inherited from NonNativeKey)

Applies to

Proizvod Verzije
MRTK3 UX Core 3.0, 3.1, 3.2