Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TextField

Creates a new textfield.
Read time 1 minuteLast updated 8 days ago

Definition

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

maxLength

The maximum number of characters this textfield can hold. If -1, there is no limit.

multiline

Set this to true to allow multiple lines in the textfield and false if otherwise.

isPasswordField

Set this to true to mask the characters and false if otherwise.

maskChar

The character used for masking in a password field.

TextField(string)

Creates a new textfield.
public TextField(string label)

Parameters

label

TextField(string, int, bool, bool, char)

Creates a new textfield.
public TextField(string label, int maxLength, bool multiline, bool isPasswordField, char maskChar)

Parameters

label


maxLength

The maximum number of characters this textfield can hold. If 0, there is no limit.

multiline

Set this to true to allow multiple lines in the textfield and false if otherwise.

isPasswordField


maskChar

The character used for masking in a password field.