unity-atoms/Source/IconAssignmentPostProcessor/IconAssignmentPostprocessor.cs

20 lines
560 B
C#
Raw Normal View History

2019-06-16 21:27:24 +02:00
using UnityEditor;
namespace UnityAtoms
{
public class IconAssignmentPostprocessor : AssetPostprocessor
{
static AtomsIconAssignmentProcessor _iconAssignment = new AtomsIconAssignmentProcessor();
static IconAssignmentPostprocessor()
{
_iconAssignment.ReloadIconsFromSettings();
}
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
{
_iconAssignment.Process(importedAssets);
}
}
}