InputFieldWithKeyboard
A class in Root.Township, Alta.Meta.UI.
Client: connects a UI InputField to the in-world VR TouchScreenKeyboard, showing it at a marker and passing typed text back.
- Listed in Menus, UI and platforms
- Inherits or implements
MonoBehaviour,IUseVirtualKeyboard
Constructors
| Member | What it is |
|---|---|
InputFieldWithKeyboard() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
12 private and internal fields
| Member | What it is |
|---|---|
private Object autoCompletionSource | Backing field for AutoCompletionSource, set in the inspector. |
private bool btnKeyboard | Inspector button that calls ShowKeyboard. |
private Transform caret | Optional caret object shown while typing. |
private bool hideOnSubmit | Whether submitting closes the keyboard (default true). |
private InputField inputField | Backing field for InputField. |
private bool isChildingKeyboardToPositionMarker | Whether the keyboard is parented to keyboardPosition so it moves with it. |
private bool isPasswordKeyboard | Whether the keyboard shows its show/hide secret key. |
private TouchScreenKeyboard keyboard | Backing field for Keyboard. |
private Transform keyboardPosition | Where the keyboard appears. |
private TouchScreenKeyboard keyboardPrefab | Keyboard prefab spawned if no TouchScreenKeyboard.Instance exists yet. |
private int maxCharactersLimit | Backing field for MaxCharactersLimit. |
private bool showKeyboardOnAwake | Whether to open the keyboard as soon as the object wakes. |
Properties
| Member | What it is |
|---|---|
InputField InputField { get; } | The input field this keyboard types into. |
TouchScreenKeyboard Keyboard { get; } | The keyboard currently open for this field, or null. |
int MaxCharactersLimit { get; } | Maximum characters allowed, or -1 for no limit. |
1 private and internal property
| Member | What it is |
|---|---|
private IAutoCompletionSource AutoCompletionSource { get; } | The optional auto completion source given to the keyboard when it opens. |
Methods
6 private and internal methods
Used in
Members of other types that take, return or hold a InputFieldWithKeyboard: