/// <summary>Constructor. Used to setup colors and also the container if any.</summary>
 /// <param name="baseColor">The color of each face of the box. Other colors are deduced from it.</param>
 /// <param name="polychromeHandleColors">The color of handle when they are separated. When they are grouped, they use a variation of the faceColor instead.</param>
 /// <param name="container">The HierarchicalBox containing this box. If null, the box will not be limited in size.</param>
 public HierarchicalBox(Color baseColor, Color[] polychromeHandleColors = null, HierarchicalBox container = null)
 {
     m_container    = container;
     m_Material     = new Material(Shader.Find("Hidden/UnlitTransparentColored"));
     this.baseColor = baseColor;
     m_Face         = Resources.GetBuiltinResource <Mesh>("Quad.fbx");
     if (polychromeHandleColors != null && polychromeHandleColors.Length != 6)
     {
         throw new System.ArgumentException("polychromeHandleColors must be null or have a size of 6.");
     }
     m_PolychromeHandleColor = polychromeHandleColors ?? new Color[]
     {
         Handles.xAxisColor, Handles.yAxisColor, Handles.zAxisColor,
         Handles.xAxisColor, Handles.yAxisColor, Handles.zAxisColor
     };
 }
        protected void OnEnable()
        {
            m_SerializedProbeVolume = new SerializedProbeVolume(serializedObject);

            s_ShapeBox = new HierarchicalBox(ProbeVolumeUI.Styles.k_GizmoColorBase, ProbeVolumeUI.Styles.k_BaseHandlesColor);
        }