UnityEditor.EditorGUILayout.Knob C# (CSharp) Méthode

Knob() public static méthode

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
Résultat 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));
        }