VirtualInputFieldBase
An abstract class in Root.Township, the global namespace.
Base for in-world text fields typed into with the virtual keyboard. Shows placeholder text when empty and can mask secret input.
- Listed in Global namespace: T to X
- Inherits or implements
MonoBehaviour - Derived types
OculusVirtualInputField,VirtualInputField
Constructors
| Member | What it is |
|---|---|
protected VirtualInputFieldBase() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
| Member | What it is |
|---|---|
protected string input | Backing field for Input. |
7 private and internal fields
| Member | What it is |
|---|---|
private string defaultValue | Placeholder text shown while the input is empty. |
private Color inputColor | Text colour for typed input. |
private TextRenderer inputRenderer | The TextRenderer that shows the input or the placeholder. |
private bool isSecret | When true, typed text is shown masked with secretKey. |
private Color placeHolderColor | Placeholder colour when the field isn't focused. |
private Color placeHolderSelectedColor | Placeholder colour while the field is focused. |
private string secretKey | String shown once per character when masking secret input (default *). |
Properties
| Member | What it is |
|---|---|
string Input { get; } | The text typed so far. |
protected string DefaultValue { get; } | The placeholder text shown when empty. |
protected TextRenderer InputRenderer { get; } | The text renderer that shows the field. |
protected bool IsSecret { get; } | Whether the input is shown as mask characters, like a password. |