UnityEditor.ColorPicker.Slider3D C# (CSharp) Method

Slider3D() private method

private Slider3D ( Rect boxPos, Rect sliderPos, float &x, float &y, float &z, GUIStyle box, GUIStyle thumb2D, GUIStyle thumbHoriz ) : void
boxPos UnityEngine.Rect
sliderPos UnityEngine.Rect
x float
y float
z float
box UnityEngine.GUIStyle
thumb2D UnityEngine.GUIStyle
thumbHoriz UnityEngine.GUIStyle
return void
        private void Slider3D(Rect boxPos, Rect sliderPos, ref float x, ref float y, ref float z, GUIStyle box, GUIStyle thumb2D, GUIStyle thumbHoriz)
        {
            Rect colorBoxRect = boxPos;
            colorBoxRect.x++;
            colorBoxRect.y++;
            colorBoxRect.width -= 2f;
            colorBoxRect.height -= 2f;
            this.DrawColorSpaceBox(colorBoxRect, z);
            Vector2 vector = new Vector2(x, 1f - y);
            vector = this.Slider2D(boxPos, vector, new Vector2(0f, 0f), new Vector2(1f, 1f), box, thumb2D);
            x = vector.x;
            y = 1f - vector.y;
            if (this.m_HDR)
            {
                this.SpecialHDRBrightnessHandling(boxPos, sliderPos);
            }
            Rect colorSliderRect = new Rect(sliderPos.x + 1f, sliderPos.y + 1f, sliderPos.width - 2f, sliderPos.height - 2f);
            this.DrawColorSlider(colorSliderRect, new Vector2(x, y));
            if ((Event.current.type == EventType.MouseDown) && sliderPos.Contains(Event.current.mousePosition))
            {
                this.RemoveFocusFromActiveTextField();
            }
            z = GUI.VerticalSlider(sliderPos, z, 1f, 0f, box, thumbHoriz);
            DrawLabelOutsideRect(new Rect(sliderPos.xMax - sliderPos.height, sliderPos.y, sliderPos.height + 1f, sliderPos.height + 1f), this.GetZAxisLabel(this.m_ColorBoxMode), LabelLocation.Right);
        }