For the main scene of my app, I have a GameObject tagged “Player” that contains all the different meshes for the player’s first and third person views. The different meshes and their accompanying scripts are activated and deactivated through code when the user switches views. The code finds the scripts and meshes by starting out with a GameObject.FindWithTag(“Player”). If I load the scene in the editor and run it, everything works fine.
However, the scene is meant to be launched from another scene which contains the main menu for the app. When I pull up the menu and start the app, it loads the main scene fine, with one exception.
I had been working on a new version of the scene, and had forgotten to change build settings so that the menu scene loaded the new version. So, essentially it was trying to load the old version of the scene, and the scripts all referenced things that no longer existed.
If you excuse me, I’ll be outside kicking myself in the head.