I have been struggling with the “change scene” and ended up with this method. Here’s a solved problem:
change active camera
When we change scenes, the camera from the previous scene is still attached. So the new scene will take over this camera, even if the new scene has a camera (awkward).
fix
- detach previous scene.activeCamera
- change scene
- attach currente scene.activeCamera
So, the position of the camera in each scene remains.
Here’s an example to change scene with double click.
If someone has a better way to change scenes and preserve the state, let me know.