Contents |
MonoBehaviours are re-instantiated when each level is loaded, so to retain a value between levels, you can use a static variable.
Q move view W translate E rotate r scale
To be able to use prefabs effectively, references needed by behaviours should be found by the behaviours themselves, instead of relying on user input in the inspector, as references external to the gameobject are not stored in the prefab.
Finding other gameobjects can be done in different ways:
The following 8 pages are in this category, out of 8 total.
EMU |
U cont. |
U cont. |