Files
godot-demo-projects/viewport/dynamic_split_screen/exit_to_menu.gd
Benjamin Navarro fe1ccaea77 [3.x] Add a 2D version of the dynamic split screen demo (#762)
* add a 2D version of the dynamic split screen demo

* refactor the dynamic split screen demo

 - both 2D and 3D scenes have the exact same hierarchy
 - a single camera_controller.gd script instead of one per mode
 - the third viewport for 2D mode has been removed
2025-10-02 17:03:12 -07:00

7 lines
130 B
GDScript

extends Node
func _process(_delta):
if Input.is_action_just_pressed("ui_cancel"):
get_tree().change_scene("res://menu.tscn")