AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
KeyboardInputFieldEditor.cs
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3 
4 using UnityEditor;
5 
6 namespace HoloToolkit.UI.Keyboard
7 {
8  [CustomEditor(typeof(KeyboardInputField))]
9  public class KeyboardInputFieldEditor : Editor
10  {
11  public Keyboard.LayoutType KeyboardLayout = Keyboard.LayoutType.Alpha;
13 
14  protected virtual void Awake()
15  {
16  KeyboardField = (KeyboardInputField)target;
17  }
18 
19  public override void OnInspectorGUI()
20  {
21  KeyboardField.KeyboardLayout = (Keyboard.LayoutType)EditorGUILayout.EnumPopup("Keyboard Type:", KeyboardField.KeyboardLayout);
22 
23  EditorGUILayout.Separator();
24  base.OnInspectorGUI();
25  }
26  }
27 }
Class that when placed on an input field will enable keyboard on click
LayoutType
Layout type enum for the type of keyboard layout to use. This is used when spawning to enable the cor...
Definition: Keyboard.cs:27
Keyboard.LayoutType KeyboardLayout
Internal field for overriding keyboard spawn point
A simple general use keyboard that is ideal for AR/VR applications.
Definition: Keyboard.cs:21