SaveAssetIfDirty
Writes all unsaved changes to the specified asset to disk.
읽는 시간 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.