Skip to main content

Class CurveRangePropertyDrawer

Custom property drawer for CurveRangeAttribute.

[CustomPropertyDrawer(typeof(CurveRangeAttribute))]
public class CurveRangePropertyDrawer : PropertyDrawer

Inheritance​

Methods​

GetPropertyHeight(SerializedProperty, GUIContent)​

Specify how tall the GUI for this field is in pixels.

public override float GetPropertyHeight(SerializedProperty property, GUIContent label)

Parameters​

NameTypeDescription
propertySerializedPropertyThe SerializedProperty to make the custom GUI for.
labelGUIContentThe label of this property.

Returns​

float — The height in pixels.

OnGUI(Rect, SerializedProperty, GUIContent)​

Make IMGUI based GUI for the property.

public override void OnGUI(Rect rect, SerializedProperty property, GUIContent label)

Parameters​

NameTypeDescription
rectRectRectangle on the screen to use for the property GUI.
propertySerializedPropertyThe SerializedProperty to make the custom GUI for.
labelGUIContentThe label of this property.
  • Methods
    • GetPropertyHeight(SerializedProperty, GUIContent)
    • OnGUI(Rect, SerializedProperty, GUIContent)