public void OnPreprocessTexture() { if (ImportSettingData.Setting.Toggle == false) return; string importAssetPath = this.assetPath; IAssetProcessor processor = ImportSettingData.GetCustomProcessor(importAssetPath); if (processor != null) processor.OnPreprocessTexture(importAssetPath, this.assetImporter); }
public void OnPreprocessTexture() { if (Setting == null) { LoadSettingFile(); } if (Setting == null || Setting.Toggle == false) { return; } string importAssetPath = this.assetPath; IAssetProcessor processor = GetCustomProcessor(importAssetPath); if (processor != null) { processor.OnPreprocessTexture(importAssetPath, this.assetImporter); } }