Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

instantiate object in script godot

var object_class = preload("res://button.tscn")
var object_instance = object_class.instance()
add_child(object_instance)
Source by godotengine.org #
 
PREVIOUS NEXT
Tagged: #instantiate #object #script #godot
ADD COMMENT
Topic
Name
6+3 =