I have a StartupScript that i want to run every time when a scene (re)loads.
When I load Scene 1 the script runs.
When I load Scene 2 the script runs.
When I go back to Scene 1 the script does not run.
How can i force the StartupScript to run every time the scene is loaded?
The script is present in each scene, on a prefab StartScriptHolder.
I'm looking at SceneManager: maybe by making and deleting named instances of Scenes I can force the StartupScript to be generated every time?
It seems very inefficient to create and discard complete Scenes just for the purpose of running a single script.