2d to 3d scenes

Godot Version

godot-4

Question

is the way a 2d scene goes to another 2d scene the same as 2d to 3d scene?

extends Control


func _on_start_button_pressed() -> void:
	get_tree().change_scene_to_file("res://Scenes/maze.tscn")
	pass
	

Yes; 2d/3d scenes are interchangeable in that sense. You don’t need to know what kind of scene you’re changing to, you change to all of them the same way.

1 Like