- Home /
AssetModificationProcessor OnWillDeleteAsset not called
Hi, as the title states, i tried to use The AssetPostProcessors OnWillDeleteAsset, but it doesn't get called. A look into the source revealed InternalEditorUtility.HasPro() and HasTeamLicense() calls. I think those may be hindering it. If so, is it intended or just a leftover from indie/pro times? Is there any callback i can use to detect about to be deleted assets (preferably before deletion, so i can compare references)?
Did you ever figure this out? I am having the same problem.
I suggest you create a $$anonymous$$imal test project and report a bug report to Unity.
Answer by AtticusMarkane · Apr 14, 2016 at 04:51 PM
You can use AssetPostProcessor to receive a list of the files that have been deleted.
http://docs.unity3d.com/ScriptReference/AssetPostprocessor.OnPostprocessAllAssets.html
Your answer
Follow this Question
Related Questions
How to change Unity remote assets folder or delete it 0 Answers
Why do some of my assets disappear without warning? 3 Answers
Is there a way to react to assets being deleted? 1 Answer
Cannot delete asset with AssetDatabase.DeleteAsset? 1 Answer
How to unsubscribe from Free Assets in the Asset Store 2 Answers