- Home /
why assets modifications like guiskin and prefabs are not subjects to save action?
Hi,
I find odd and dangerous that assets like guiskin, prefabs ( and I think materials) and the like are not subject to save protocole. If I change a setting, it's done, and if I quit unity it doesn't ask me if I want to save my changes. Saving warnings and action only seems to affect scenes.
Am I correct? am i missing something? am I the only one to feel uncomfortable with this?
thanks, for your insight,
Jean
Answer by jonas-echterhoff · Nov 02, 2010 at 08:58 AM
Any asset (with the exception of scenes) which is edited in Unity is automatically saved when editing. This includes all prefabs, all custom ScriptableObject assets and Materials, PhysicMaterials, Custom Fonts, etc.
We are aware of the fact that this is not a perfect solution (which means we want to fix it eventually), but for now, this is how it is.
Note that this is also the case for changes made procedurally, which is also disconcerting!! I have a GUISkin as an asset. If my code changes the text colour of one the styles in that skin then the change is immediately saved back to my original asset, yikes! (Yes, I need to refactor my code to use the multiple text colour settings within style, and treat the style as readonly ...)
Your answer