VirtualInputField
A class in Root.Township, the global namespace.
Client UI: a text field typed into with the in-game virtual keyboard, with a caret, a character limit, optional hidden (secret) text and links to the previous and next fields.
- Listed in Global namespace: T to X
- Inherits or implements
VirtualInputFieldBase,IUseVirtualKeyboard
Constructors
| Member | What it is |
|---|---|
VirtualInputField() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
10 private and internal fields
| Member | What it is |
|---|---|
private AltaEvent backspaceOnEmpty | Event run when backspace is pressed on an empty field. |
private Transform caret | Caret transform placed after the text. |
private TouchScreenKeyboard keyboard | In-world touch screen keyboard that types into this field. |
private int maxCharactersLimit | Most characters allowed; -1 for no limit. |
private VirtualInputField next | Field focused when the keyboard asks for the next field. |
private AltaEvent nextAction | Event run when the keyboard submits. |
private bool nextOnlyWhenHasInput | If true, submitting an empty field does nothing. |
private AltaEvent onLostFocus | Event run when the field loses focus. |
private VirtualInputField previous | Field focused when the keyboard asks for the previous field. |
private bool showSecret | Value returned by IsShowingSecret. |
Properties
| Member | What it is |
|---|---|
int MaxCharactersLimit { get; } | Most characters allowed, or -1 for no limit. |
VirtualInputField Next { get; } | Field to move to after this one. |
VirtualInputField Previous { get; } | Field to move back to. |
Methods
4 private and internal methods
Used in
Members of other types that take, return or hold a VirtualInputField: