Class MinMaxSliderDrawer
Custom property drawer for MinMaxSliderAttribute.
[CustomPropertyDrawer(typeof(MinMaxSliderAttribute))]
public class MinMaxSliderDrawer : PropertyDrawer
Inheritance
Methods
CreatePropertyGUI(SerializedProperty)
Creates the UI Toolkit-based GUI for the property.
public override VisualElement CreatePropertyGUI(SerializedProperty property)
Parameters
| Name | Type | Description |
|---|---|---|
property | SerializedProperty | Serialized property to draw. |
Returns
VisualElement — The element containing the custom GUI.
OnGUI(Rect, SerializedProperty, GUIContent)
Draws the IMGUI-based GUI for the property.
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
| Name | Type | Description |
|---|---|---|
position | Rect | Rectangle on the screen to use for the property GUI. |
property | SerializedProperty | The serialized property being drawn. |
label | GUIContent | The label of this property. |