OnWillDeleteAsset(string, RemoveAssetOptions)
This is called by Unity when it is about to delete an asset from disk.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor
OnWillDeleteAsset()
public void OnWillDeleteAsset(string arg0, RemoveAssetOptions removeAssetOptions)
Parameters
Remarks
If this is implemented, it allows you to delete the asset yourself. Deletion of a file can be prevented by returning AssetDeleteResult.FailedDelete You should not call any Unity AssetDatabase api from within this callback, preferably keep to file operations or VCS apis.