private static void DrawRemoveBuildSettingsButton(ISceneReference sceneReference) { using (new EditorGUI.DisabledScope(EditorBuildSettingsHelper.Contains(sceneReference.path) == false)) { if (GUILayout.Button("Remove")) { EditorBuildSettingsHelper.RemoveScene(sceneReference.path); } } }
private static void DrawAddBuildSettingsButton(Object sceneAsset, ISceneReference sceneReference) { using (new EditorGUI.DisabledScope(sceneAsset == null || EditorBuildSettingsHelper.Contains(sceneReference.path))) { if (GUILayout.Button("Add")) { EditorBuildSettingsHelper.AddScene(sceneReference.path); } } }