object.text

类型 字符串
对象 文本框
native.*
修订版 版本 2024.3703
关键词 本机文本输入
请参见 native.newTextBox()

概述

本机文本输入框的内容。

示例

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!"