I have a game with three scenes, two level scenes and a menu scene. When I press play on my level scene the first time, everything works perfectly, but when I go to the menu scene and then later return to the level scene,
the references on the scripts attached to the NetworkManager GameObject were reset. On the scripts shown in the picture below, for example, all but the references that were linked to prefabs in my assets were reset.
I've tried assigning each and every variable with code instead of doing it manually, but even that doesn't work.
This GameObject does have dontdestroyonload on. Why are these references getting reset specifically on this object?