Issue #113 wontfix
Former user created an issue

It would be cool to have color header sections for BoxGroup and such.

Comments (3)

  1. Bjarke Elias

    Thanks for the suggestion, we'll consider this :)

    For now, you could do something like this:

        public class MyComponent : MonoBehaviour
        {
            [BoxGroup]
            [OnInspectorGUI("DrawColoredHeader", append: false)]
            public int A;
    
            [BoxGroup]
            public int B;
    
        #if UNITY_EDITOR
            private void DrawColoredHeader()
            {
                SirenixEditorGUI.BeginBoxHeader();
                GUIHelper.PushColor(Color.green);
                GUILayout.Label("My Box Header");
                GUIHelper.PopColor();
                SirenixEditorGUI.EndBoxHeader();
            }
        #endif
        }
    
  2. Bjarke Elias

    We'll keep the simplicity of the BoxGroup attribute for now, but you can easily make your own ColorBoxGroup attribute, or use the code posted above.

  3. Log in to comment