- Home /
Prefabs marked as modified in SVN when modifying script associated with it?
Lately, I have noticed that in my SVN client prefabs are being marked as modified if the script associated with it is modified.
For example, if I have a prefab with a script on it, then add a variable to that script, the prefab will be marked as modified.
I don't remember this happening in previous versions of Unity (currently running 5.5.2f1), and is quite annoying when messing with a script that is being used by 20-30 prefabs, which all of them are then marked as modified.
Has anyone else noticed this and is there a way around it? (Turn off script serialization for prefabs?)
Answer by Orami · Jun 19, 2017 at 06:24 PM
If the script changes it is different from the prefab even if the new public variable is just a default value. If you don't want it to flag them all as changed then I would suggest making the variable private. You don't have to click apply by default though so it shouldn't matter much? How is this impacting your development?