object.text

Type String
Object TextBox
Library native.*
Revision 2017.3060
Keywords native text input
See also native.newTextBox()

Overview

The contents of the native text input box.

Example

local textBox = native.newTextBox( 160, 240, 280, 140 )
textBox.font = native.newFont( "Helvetica-Bold", 18 )
textBox:setTextColor( 0.8, 0.8, 0.8 )
textBox.alpha = 1.0
textBox.hasBackground = false
textBox.text = "Hello World!"