[Add] All in one shader

This commit is contained in:
2026-02-23 22:01:07 +07:00
parent ec0aa86ac2
commit 4f942cd7c0
806 changed files with 401510 additions and 33 deletions
@@ -0,0 +1,26 @@
#if UNITY_EDITOR
using UnityEditor;
namespace AllIn1SpriteShader
{
public class AllIn1ShaderAssetPostProcessor : AssetPostprocessor
{
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths, bool didDomainReload)
{
bool needToRefreshConfig = false;
for (int i = 0; i < importedAssets.Length; i++)
{
if (importedAssets[i].EndsWith(Constants.MAIN_ASSEMBLY_NAME))
{
needToRefreshConfig = needToRefreshConfig || true;
}
}
if (needToRefreshConfig)
{
AllIn1ShaderImporter.ForceReimport();
}
}
}
}
#endif