NeoSpark314 / godot_oculus_quest_toolkit

An easy to use VR toolkit for Oculus Quest development using the Godot game engine
MIT License
368 stars 39 forks source link

switch_scene() will now fallback to get_tree().change_scene() #17

Closed Wavesonics closed 4 years ago

Wavesonics commented 4 years ago

If no scene_switch_root is defined, then it will switch using the built-in get_tree().change_scene()

This allows for more flexibility in the scene tree layout.

My scene tree has no "master" scene, it just uses get_tree().change_scene() to move between screens.

This did not work well with scene_switch_root. So this change allows use of switch_scene() without configuring scene_switch_root.