UnityEditor.ColorPicker.EditableAxisLabel C# (CSharp) Method

EditableAxisLabel() private static method

private static EditableAxisLabel ( Rect rect, Rect dragRect, float value, float minValue, float maxValue, GUIStyle style ) : float
rect UnityEngine.Rect
dragRect UnityEngine.Rect
value float
minValue float
maxValue float
style UnityEngine.GUIStyle
return float
        private static float EditableAxisLabel(Rect rect, Rect dragRect, float value, float minValue, float maxValue, GUIStyle style)
        {
            int id = GUIUtility.GetControlID(0x9b10027, FocusType.Keyboard, rect);
            string kFloatFieldFormatString = EditorGUI.kFloatFieldFormatString;
            EditorGUI.kFloatFieldFormatString = (value >= 10f) ? "n0" : "n1";
            float num2 = EditorGUI.DoFloatField(EditorGUI.s_RecycledEditor, rect, dragRect, id, value, EditorGUI.kFloatFieldFormatString, style, true);
            EditorGUI.kFloatFieldFormatString = kFloatFieldFormatString;
            return Mathf.Clamp(num2, minValue, maxValue);
        }