- Home /
How to force variables in a script to be unique to every instance?
I have a prefab for my level manager called "LevelManagerO" (O for Object) and all it has is a Level Manager Script, which has variables for the current level. However, if I update the prefab, it updates every variable to every scene it is in.
Can I force public variables to be set for every instance separately?
Thanks,
-P
Have you set different values in the other scenes? Usually they get bold in the inspector and override the prefab until you select revert
Without some code its hard to say. I would guess you use static variables.
Your answer
Follow this Question
Related Questions
how to make a variable in a script that do not apply to all prefab istances 1 Answer
How can i auto assign Public value VirtualJoystick to Prefabs 0 Answers
How to access a variable from a game object once instantiated (C#) 1 Answer
Is it possible to show Static Variables in the Inspector? 10 Answers