CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
|
|
static |
Forces the object to be saved to disk. Marks the object as dirty and then calls CodeSmileEditor.Asset.File.Save.
This should only be used if the asset doesn't save otherwise, since unnecessarily writing an object to disk is a slow operation. Example where this may be required would be changes to fields of a ScriptableObject without using the SerializedObject or SerializedProperty classes.
asset | The asset to mark as dirty, then save. |