namespace AtlasUtility { using UnityEditor; using UnityEngine; using System.IO; using System.Reflection; using System.Collections.Generic; public class Postprocess : AssetPostprocessor { public static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) { List pngPathList = new List(); for (int i = 0; i < deletedAssets.Length; i++) { if (Path.GetExtension(deletedAssets[i]) == ".png") { pngPathList.Add(deletedAssets[i]); } } ReferenceManager.ResetReference(pngPathList); } } }