So I just ran across this while researching solutions for scene management in code, and I have to say this is really slick! I actually want to offer a small addition that I find extremely handy:
In the OpenSceneWithArgs method of SceneManager, add a parameter bool additive and the following to the method body:
Then, in any given SceneController subclass, you can call subscenes, leaving the main scene to be a master controller and additively loading additional scenes as needed:
So I just ran across this while researching solutions for scene management in code, and I have to say this is really slick! I actually want to offer a small addition that I find extremely handy:
In the
OpenSceneWithArgs
method ofSceneManager
, add a parameterbool additive
and the following to the method body:Then, in any given
SceneController
subclass, you can call subscenes, leaving the main scene to be a master controller and additively loading additional scenes as needed:Inside my
MainMenuController
I of course callArgs.SomeInitializer()
and boom, subscene loaded up.