object.text

Type String
Object TextField
Library native.*
Revision Release 2024.3703
Keywords native text input
See also native.newTextField()

Overview

The contents of the native text input field.

Example

local field1 = native.newTextField( 50, 100, 100, 35 )
field1.align = "center"
field1:setTextColor( 1, 0.5, 0 )
field1.text = "Hello World!"