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