Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to create existing nodes in godot

var my_label_node = Label.new()

add_child(my_label_node)
my_label_node.set_owner(self)
my_label_node.set_text('Text')
my_label_node.set_global_pos(Vector2(50,50))
Source by godotengine.org #
 
PREVIOUS NEXT
Tagged: #create #existing #nodes #godot
ADD COMMENT
Topic
Name
6+7 =