/// <summary> /// 处理图集 /// </summary> private void OnPreprocessSpriteAtlas() { if (ImportSettingData.Setting.Toggle == false) return; string importAssetPath = this.assetPath; IAssetProcessor processor = ImportSettingData.GetCustomProcessor(importAssetPath); if (processor != null) processor.OnPreprocessSpriteAtlas(importAssetPath, this.assetImporter); }
/// <summary> /// 处理图集 /// </summary> private void OnPreprocessSpriteAtlas() { if (Setting == null) { LoadSettingFile(); } if (Setting == null || Setting.Toggle == false) { return; } string importAssetPath = this.assetPath; IAssetProcessor processor = GetCustomProcessor(importAssetPath); if (processor != null) { processor.OnPreprocessSpriteAtlas(importAssetPath, this.assetImporter); } }