Class CSVToAnimationCurveSOEditor.HeaderMappingDrawer
Custom property drawer for HeaderMapping within the editor GUI.
[CustomPropertyDrawer(typeof(CSVToAnimationCurveSOEditor.HeaderMapping))]
public class CSVToAnimationCurveSOEditor.HeaderMappingDrawer : 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
| Name | Type | Description |
|---|---|---|
property | SerializedProperty | The SerializedProperty to make the custom GUI for. |
label | GUIContent | The label of this property. |
Returns
float — The height in pixels.
OnGUI(Rect, SerializedProperty, GUIContent)
Create 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 SerializedProperty to make the custom GUI for. |
label | GUIContent | The label of this property. |