public override void OnInspectorGUI() { base.OnInspectorGUI(); EditorGUILayout.Space(); if (GUILayout.Button("Apply Color Scheme")) { ColorScheme scheme = this.target as ColorScheme; if (scheme != null) { // Apply the color scheme to the loaded scenes scheme.ApplyColorScheme(); if (!Application.isPlaying) { EditorSceneManager.MarkAllScenesDirty(); } } } }