UISystem. UITextInput

UITextInput - An editable text input field

  • A simple text entry field that supports basic editing
  • Suitable for short text input like names or numbers

Constructor

new UITextInput(posopt, sizeopt, textopt)

Create a UITextInput object

Parameters:
NameTypeAttributesDescription
posVector2<optional>
sizeVector2<optional>
textstring<optional>

Extends

  • UIObject

Members

maxLength

Properties
TypeDescription
number

Max length of input (0 = no limit)

Methods

onKeyDown(eopt)

Key down event handler if this object is being edited

Parameters:
NameTypeAttributesDescription
eKeyboardEvent<optional>

stopEditing()

Stop editing the text edited