instantiate object in script godot

Solutions on MaxInterview for instantiate object in script godot by the best coders in the world

showing results for - "instantiate object in script godot"
Alessia
15 Nov 2016
1var object_class = preload("res://button.tscn")
2var object_instance = object_class.instance()
3add_child(object_instance)