Version: 2023.2
언어: 한국어
public static void SaveAssetIfDirty (Object obj);
public static void SaveAssetIfDirty (GUID guid);

파라미터

obj The asset object to be saved, if dirty.
guid The guid of the asset to be saved, if dirty.

설명

Writes all unsaved changes to the specified asset to disk.

This function is similar to SaveAssets, and likewise should not be called during serialization.

It does not invoke AssetModificationProcessor.OnWillSaveAssets, as the asset is directly specified.