I need a way to protect some concrete public values of prefab’s instances from Apply.
Example: I have a soldier (An instance from a Prefab) with many modified values exposed on the inspector such as:
- Health
- Waypoints Array
- Speed
Each soldier comes from the same Prefab but each one has different values on these variables.
Let’s suppose that I want to change the material, or the mesh, or add some component or some child object.
After doing the changes, when I click “Apply” all the values of my soldiers will be the same than the soldier from I “Applied” the changes.
I discovered that interesting possible solution in the forum:
http://answers.unity3d.com/questions/135886/apply-prefab-except-for-one-component.html
But it’s not perfect, since It’s mandatory to do little changes to all the values of the class even if you don’t want to have a different value from the original, what it’s really annoying.
Is there another way to protect a especific value from the powerful but dangerous “Apply”?