void OnPreprocessAudio()
        {
            if (audioSettings == null)
            {
                audioSettings = AudioImport.Load();
            }
            AudioImporter importer = assetImporter as AudioImporter;

            foreach (AudioImport i in audioSettings)
            {
                i.Apply(importer);
            }
        }
Exemple #2
0
 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();
 }
Exemple #3
0
 public override void OnEnable()
 {
     settings = AudioImport.Load();
 }