XAssetPostprocessor.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //using XGame.Editor.Asset.Processor;
  2. //using UnityEditor;
  3. //using UnityEngine;
  4. //using XGame.Editor.Asset;
  5. //namespace FL.Editor.Imports
  6. //{
  7. // public class XAssetPostprocessor : AssetPostprocessor
  8. // {
  9. // private const string asset_res = "Assets/Res/";
  10. // public static void OnPostprocessAllAssets(string[] importedAsset, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
  11. // {
  12. // }
  13. // void OnPreprocessTexture()
  14. // {
  15. // var textureImporter = (TextureImporter)assetImporter;
  16. // if (AssetsConfig.ImportHandle.TryApplyTextureImporter(assetPath, textureImporter))
  17. // {
  18. // return;
  19. // }
  20. // }
  21. // void OnPostprocessTexture(Texture2D texture)
  22. // {
  23. // }
  24. // void OnPreprocessModel()
  25. // {
  26. // var modelImporter = (ModelImporter)assetImporter;
  27. // if (AssetsConfig.ImportHandle.TryApplyModelImporter(assetPath, modelImporter))
  28. // {
  29. // }
  30. // }
  31. // void OnPostprocessModel(GameObject model)
  32. // {
  33. // }
  34. // }
  35. //}