Files
godot-demo-projects/3d/ik/button_change_scene.gd
Noah Beard 14b6f3587b Added a 3D IK demo with the following IK solvers: Look at and FABRIK
Three scenes are included, one of which shows a example use case.
2018-03-17 11:44:06 -04:00

11 lines
226 B
GDScript

extends Button
export (String, FILE) var scene_to_change_to = null
func _ready():
connect("pressed", self, "change_scene")
func change_scene():
if scene_to_change_to != null:
get_tree().change_scene(scene_to_change_to)