TMP_KeyboardInputField Class

Definition

A component that can be added to InputField to make it work with Windows Mixed Reality's system keyboard. Only used in Unity 2018.4. No longer used in Unity 2019.3 and later versions (becomes an empty MonoBehaviour and is only around for compatibility) and you can safely remove it if you wish

C++
public ref class TMP_KeyboardInputField : Microsoft::MixedReality::Toolkit::Experimental::UI::KeyboardInputFieldBase<TMPro::TMP_InputField ^>
C++
public ref class TMP_KeyboardInputField : Microsoft::MixedReality::Toolkit::Experimental::UI::KeyboardInputFieldBase<Microsoft::MixedReality::Toolkit::Experimental::UI::MRTKTMPInputField ^>
C++
public ref class TMP_KeyboardInputField : UnityEngine::MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
KeyboardInputFieldBase<TMPro.TMP_InputField>
TMP_KeyboardInputField
Inheritance
TMP_KeyboardInputField
Inheritance
UnityEngine.MonoBehaviour
TMP_KeyboardInputField
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.RequireComponentAttribute

Remarks

If using Unity 2019 or 2020, make sure the version >= 2019.4.25 or 2020.3.2 to ensure the latest fixes for Unity keyboard bugs are present.

There is a known Unity/TMP issue preventing the caret from showing up. Please see https://github.com/microsoft/MixedRealityToolkit-Unity/issues/9056 for updates.

Constructors

Fields

Properties

CaretIndex

Returns the index of the caret within the text.

(Inherited from MixedRealityKeyboardBase)
DisableUIInteractionWhenTyping

Whether disable user's interaction with other UI elements while typing. Use this option to decrease the chance of keyboard getting accidentally closed.

(Inherited from MixedRealityKeyboardBase)
OnCommitText

Event which triggers when commit action is invoked on the keyboard. (Usually the return key.)

(Inherited from MixedRealityKeyboardBase)
OnHideKeyboard

Event which triggers when the keyboard is hidden.

(Inherited from MixedRealityKeyboardBase)
OnShowKeyboard

Event which triggers when the keyboard is shown.

(Inherited from MixedRealityKeyboardBase)
Text
Visible

Returns true if the keyboard is currently open.

(Inherited from MixedRealityKeyboardBase)

Methods

Applies to

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0