I have implemented Scene loading in my game and have three scenes:
Main Menu and
By default, the player is loaded into the
Persistent scene, which immediately loads the
Main Menu, and when the player clicks on Play,
Main Menu is unloaded and
Game is loaded.
Now, the two active scenes are
However, I have a script with
OnDrawGizmos on a GameObject in the
Game scene. It seems that by default gizmos only begin to be drawn when I click on that GameObject, sort of activating it, and everything works fine. This used to just work before because
Game was my only scene and Unity automatically selected that first GameObject. Now, with multiple scenes, no GameObject is selected by default and my gizmos won’t draw until I manually click on it.
How can I solve this?