Class PIDControllerPropertyDrawer
Custom property drawer for displaying PIDController{T} fields in the Unity Inspector.
[CustomPropertyDrawer(typeof(PIDController<>))]
public class PIDControllerPropertyDrawer : PropertyDrawer
Inheritance
Derived
Methods
CreatePropertyGUI(SerializedProperty)
Creates custom GUI with UI Toolkit for the property.
public override VisualElement CreatePropertyGUI(SerializedProperty property)
Parameters
| Name | Type | Description |
|---|---|---|
property | SerializedProperty | The SerializedProperty to make the custom GUI for. |
Returns
VisualElement — The element containing the custom GUI.
OnGUI(Rect, SerializedProperty, GUIContent)
Override this method to make your own 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. |