Text||doc136474

September 20, 2022

Format

Text.Text

Describe

Determines the string to be displayed on the text control, which can be set in the interface editor or modified when the game is running

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--Get the Text control for testing according to the name
local text = APIRootWindow.APIText

--Set the text of the text control
text.Text = "api testing"