Modifier

Partager via


SystemKeyboardExample Class

Definition

An example script that delegates keyboard API access either to the WMR workaround (MixedRealityKeyboard) or Unity's TouchScreenKeyboard API depending on the platform.

public ref class SystemKeyboardExample : UnityEngine::MonoBehaviour
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/SystemKeyboardExample")]
public class SystemKeyboardExample : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/SystemKeyboardExample")>]
type SystemKeyboardExample = class
    inherit MonoBehaviour
Public Class SystemKeyboardExample
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
SystemKeyboardExample
Attributes
UnityEngine.AddComponentMenuAttribute

Remarks

Note that like Unity's TouchScreenKeyboard API, this script only supports WSA, iOS, and Android.

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.

Constructors

SystemKeyboardExample()

Methods

OpenSystemKeyboard()

Opens a platform specific keyboard.

Applies to