void OnGUI() { GUILayout.Label("Build settings are taken from the standard Build Settings window"); GUILayout.Space(15); _buildNumber = EditorGUILayout.TextField("Build Number", _buildNumber); _makeBundleBasedPlayer = GUILayout.Toggle(_makeBundleBasedPlayer, "Make bundle-based player"); GUI.enabled = _makeBundleBasedPlayer; _includeBundles = GUILayout.Toggle(_includeBundles, "Include bundles"); _includeBundlesCache = GUILayout.Toggle(_includeBundlesCache, "Include bundles cache"); _quickPlayer = GUILayout.Toggle(_quickPlayer, "Quick test player (won't generate bundles)"); GUI.enabled = true; GUILayout.Space(15); GUILayout.BeginHorizontal(); if (GUILayout.Button("Player Settings")) { EditorApplication.ExecuteMenuItem("Edit/Project Settings/Player"); } if (GUILayout.Button("Build Settings")) { BuildUtils.OpenBuildPlayerWindow(); } GUILayout.Space(60); if (GUILayout.Button("Build")) { _makePending = true; _autoRun = false; } if (GUILayout.Button("Build And Run")) { _makePending = true; _autoRun = true; } GUILayout.EndHorizontal(); }