Could anyone recommend what the best practise is for access the scene manager outside of scenes?
Usually I would access the scene manager like this, from within a scene:
My understanding from that StackOverflow link is that using game.scene is risky for things like game.scene.start as is disregards the game step, and I’m wary of introducing bugs.
So far our workaround for this is having a root BootScene that displays nothing but just hangs around for the entire game so that we have always an instantiated scene that we can reference the SceneManager on for global tasks we need to perform in our HTML UI code. It does feel like a hack though.