feat:1、添加项目

This commit is contained in:
2026-06-02 10:26:44 +08:00
commit dfead2c461
7518 changed files with 748693 additions and 0 deletions
@@ -0,0 +1,47 @@
using System;
using UnityEditor;
using UnityEngine;
using AnyThink.Scripts.IntegrationManager.Editor;
[InitializeOnLoad]
public class ATAssetPostprocessor : AssetPostprocessor
{
private static readonly string TAG = "ATAssetPostprocessor";
static ATAssetPostprocessor()
{
log("ATAssetPostprocessor is now initialized!");
}
void OnPostprocessAsset(string path)
{
log("OnPostprocessAsset() >>> path: " + path + " assetPath: " + assetPath);
}
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
{
foreach (string str in importedAssets)
{
log("imported Asset: " + str);
}
foreach (string str in deletedAssets)
{
log("Deleted Asset: " + str);
}
for (int i = 0; i < movedAssets.Length; i++)
{
log("Moved Asset: " + movedAssets[i] + " from: " + movedFromAssetPaths[i]);
}
}
void OnPreprocessAsset()
{
log("OnPreprocessAsset() >>> called assetPath: " + assetPath);
}
private static void log(string msg)
{
ATLog.log(TAG, msg);
}
}