mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 09:08:23 -05:00
20 lines
560 B
C#
20 lines
560 B
C#
|
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);
|
||
|
}
|
||
|
}
|
||
|
}
|