private void SetupAngleRangeController()
        {
            var radius      = 125f;
            var angleOffset = -90f;
            var color1      = Contents.defaultColor1;
            var color2      = Contents.defaultColor2;

            if (!EditorGUIUtility.isProSkin)
            {
                color1 = Contents.proColor1;
                color2 = Contents.proColor2;
            }

            controller                   = new AngleRangeController();
            controller.view              = new AngleRangeView();
            controller.cache             = this;
            controller.radius            = radius;
            controller.angleOffset       = angleOffset;
            controller.gradientMin       = color1;
            controller.gradientMid       = color2;
            controller.gradientMax       = color1;
            controller.snap              = true;
            controller.selectionChanged += OnSelectionChange;

            OnSelectionChange();
        }
Beispiel #2
0
        private void SetupController()
        {
            Debug.Assert(m_Cache != null);
            Debug.Assert(m_View != null);

            m_Controller       = new AngleRangeController();
            m_Controller.view  = m_View;
            m_Controller.cache = m_Cache;
        }