Skip to content

UITextInput

Inherits UIView

UITextInput is a class that allows the user to enter text.

Properties

Text : string

The text of the label.

TextColor : Color

The color of the text.

JustifyText : TextHorizontalAlignmentEnum

Determines how text is justified.

FontSize : number

The font size of the label.

IsMultiline : boolean

Determines whether the text input supports multiple lines.

Placeholder : string

The placeholder text displayed when the input is empty.

PlaceholderColor : Color

The color of the placeholder text.

ReadOnlyColor : Color

The color of the text when the input is read-only.

IsReadOnly : boolean

Determines whether the text input is read-only.

FontAsset : FontAsset

The font asset used for the text.

Methods

Focus → nil

Parameters: ``

Forces the local player to focus on the text input.

Events

Submitted

Parameters: text [ string ]

Fires when user submitted the text

Changed

Parameters: text [ string ]

Fires when user changed the text