TextField
Creates a new textfield.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
TextField()
Creates a new textfield.
public TextField()
TextField(int, bool, bool, char)
Creates a new textfield.
public TextField(int maxLength, bool multiline, bool isPasswordField, char maskChar)
Parameters
The maximum number of characters this textfield can hold. If -1, there is no limit.
Set this to true to allow multiple lines in the textfield and false if otherwise.
Set this to true to mask the characters and false if otherwise.
The character used for masking in a password field.
TextField(string)
Creates a new textfield.
public TextField(string label)
Parameters
TextField(string, int, bool, bool, char)
Creates a new textfield.
public TextField(string label, int maxLength, bool multiline, bool isPasswordField, char maskChar)