Material Box

Material Box

WEB Design & Material Images

Godot - Change Label text

Godot

GDScript code example to change Label text.


Can specify and change display text of Label node with "text" property.

var label = Label.new()
add_child(label)

# Change Label text
label.text = "Text"

To display multi-line text, can use newline code "\\r\\n".

label.text = "Text\\r\\nNode"

Godot

TitleGodot - Change Label text

CategoryGodot

Created

Update

AuthorYousuke.U