A number of GameObjects are missing from the compiled version of my game. They are there in the editor, and they are there when I run the game from the editor. They seem to be GameObjects that were added in the last few weeks - all the earlier ones are present.
I get the game to list all the GameObjects in the scene using:
foreach (GameObject go in Resources.FindObjectsOfTypeAll<GameObject>()) Debug.Log(go.name);
The GameObjects are listed when it’s run from the editor, but a number are missing when run from a windows executable.
Does anyone have any idea why this might be or where I should start looking?