Godot Version
4.3 dev4
Question
Hi, i’m somewhat new to Godot and i’m playing with xr-tools for godot and i would like to load a new scene from the main menu… i’ve all setup and running, however i’m not sure what is the proper way of switching scenes.
As i can see, the scenes in the XR demo are not actually swapped, but a new scene is just added to the current one as a sub-scene or something. In other words we only work in the same scene.
However i may need to have different setup for player/controller, in one scene player should be stationary and not be moving, in another one using controllers to move and in another using room scale setup. So i think i would be wanting to load a scene that has its own controller inside, setup specifically for that scene.
So, is it possible to change a scene the way we do in for a normal game like so:
note that, by using this code, the editor hangs.
var scene_tree = get_tree()
var new_scene_path = "res://scenes/city_scene.tscn"
scene_tree.change_scene(new_scene_path)
or in XR we are only allowed to add/remove sub-scenes like in the demo ?
Any help is appreciated.
Thanks