SaveAssetIfDirty
Writes all unsaved changes to the specified asset to disk.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
SaveAssetIfDirty(GUID)
Writes all unsaved changes to the specified asset to disk.
public static void SaveAssetIfDirty(GUID guid)
Parameters
Remarks
This function is similar to AssetDatabase.SaveAssets, and likewise should not be called during serialization.
It does not invoke AssetModificationProcessor.OnWillSaveAssets(string[]), as the asset is directly specified.
SaveAssetIfDirty(Object)
Writes all unsaved changes to the specified asset to disk.
public static void SaveAssetIfDirty(Object obj)
Parameters
The asset object to be saved, if dirty.
Remarks
This function is similar to AssetDatabase.SaveAssets, and likewise should not be called during serialization.
It does not invoke AssetModificationProcessor.OnWillSaveAssets(string[]), as the asset is directly specified.