void OnPreprocessAudio() { if (audioSettings == null) { audioSettings = AudioImport.Load(); } AudioImporter importer = assetImporter as AudioImporter; foreach (AudioImport i in audioSettings) { i.Apply(importer); } }
public override void OnFooterGUI() { EditorGUILayout.BeginHorizontal(); if (GUILayout.Button("+")) { settings.Add(new AudioImport()); } if (GUILayout.Button("Load")) { settings = AudioImport.Load(); CustomAssetPostprocessor.audioSettings = settings; } if (GUILayout.Button("Save")) { AudioImport.Save(settings); } EditorGUILayout.EndHorizontal(); }
public override void OnEnable() { settings = AudioImport.Load(); }