| Parameter | Description |
|---|---|
| obj | The asset object to save, if it has unsaved changes. |
Writes any unsaved changes to an asset object to disk.
This method is similar to AssetDatabase.SaveAssets, so don't call it during serialization either. Because you specify the asset directly, it doesn't call AssetModificationProcessor.OnWillSaveAssets.
| Parameter | Description |
|---|---|
| guid | The GUID of the asset to save, if it has unsaved changes. |
Writes any unsaved changes to the asset with the specified GUID to disk.
This method is similar to AssetDatabase.SaveAssets, so don't call it during serialization either. Because you specify the asset directly, it doesn't call AssetModificationProcessor.OnWillSaveAssets.