public void InitGUI()
 {
     noPreprocessors = !BuildPreprocessor.GetPreprocessors(out preprocessors);
     if (!noPreprocessors)
     {
         for (int i = 0; i < preprocessors.Length; i++)
         {
             preprocessors[i].InitGUI();
         }
     }
 }
 private void OnGUI()
 {
     if (noPreprocessors)
     {
         EditorGUILayout.HelpBox("No preprocessors!", MessageType.Warning);
     }
     else
     {
         scroll = EditorGUILayout.BeginScrollView(scroll);
         for (int i = 0; i < preprocessors.Length; i++)
         {
             preprocessors[i].Active = EditorGUILayout.BeginToggleGroup(preprocessors[i].GetName(), preprocessors[i].Active);
             preprocessors[i].OnGUI();
             EditorGUILayout.EndToggleGroup();
         }
         GUILayout.Space(15);
         if (GUILayout.Button("Save"))
         {
             BuildPreprocessor.SavePreprocessors(preprocessors);
         }
         EditorGUILayout.EndScrollView();
     }
 }