UnityEditor.EditorGUILayout.Knob C# (CSharp) Method

Knob() public static method

public static Knob ( Vector2 knobSize, float value, float minValue, float maxValue, string unit, Color backgroundColor, Color activeColor, bool showValue ) : float
knobSize Vector2
value float
minValue float
maxValue float
unit string
backgroundColor Color
activeColor Color
showValue bool
return float
        public static float Knob(Vector2 knobSize, float value, float minValue, float maxValue, string unit, Color backgroundColor, Color activeColor, bool showValue, params GUILayoutOption[] options)
        {
            Rect position = s_LastRect = GetControlRect(false, knobSize.y, options);
            return EditorGUI.Knob(position, knobSize, value, minValue, maxValue, unit, backgroundColor, activeColor, showValue, GUIUtility.GetControlID("Knob".GetHashCode(), FocusType.Passive, position));
        }