Skip to main content

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​

NameTypeDescription
propertySerializedPropertySerialized 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​

NameTypeDescription
positionRectRectangle on the screen to use for the property GUI.
propertySerializedPropertyThe serialized property being drawn.
labelGUIContentThe label of this property.
  • Methods
    • CreatePropertyGUI(SerializedProperty)
    • OnGUI(Rect, SerializedProperty, GUIContent)