How could i make a global variable that contains a gameobject reference ? I wish for exemple to make a c# file that contains for exemple a global gameobject variable that points to the camera, one for the player and one for a prefab.
I know how to make a gameobject variable, and I can then drag the object or the prefab in the slot outside of the editor to reference it, however as soon as I add the static keyword to make my variable global, the slot disappears and I cannot assign the gameobject to the variable anymore
Thanks for your time
Tabc3dd