Hi there, great post! Nice basis for passing dependencies between scenes.
By the way, I believe the code for SceneManager.OpenSceneWithArgs skips storing non-null SceneArgs instances in the dictionary, meaning loaded SceneController instances will only receive uninitialized instances. Perhaps a fix:
args.Add(type,sceneArgs??newTArgs{IsNull=true});
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi there, great post! Nice basis for passing dependencies between scenes.
By the way, I believe the code for
SceneManager.OpenSceneWithArgs
skips storing non-nullSceneArgs
instances in the dictionary, meaning loadedSceneController
instances will only receive uninitialized instances. Perhaps a fix: