AssetModificationProcessor.OnWillDeleteAsset(string,RemoveAssetOptions)

Switch to Manual

Description

当 Unity 即将从磁盘中删除资源时,则会调用此方法。

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.