public override void OnInspectorGUI() { DrawDefaultInspector(); GUILayout.Space(20); GUILayout.BeginHorizontal(); if (GUILayout.Button("Chose Build Folder")) { string buildFolderPath = EditorUtility.SaveFolderPanel("Select Build Folder", "", ""); foreach (var item in builders) { item.buildFolderPath = buildFolderPath; } } if (GUILayout.Button("Build")) { EditorApplication.delayCall += () => BuildGroup.Build(builders); } GUILayout.EndHorizontal(); }
private void OnEnable() { b = (BuildGroup)target; }