Mechanism to make nested UnityEditor.CustomPropertyDrawer
possible.
More...
Inherits PropertyDrawer.
Public Member Functions | |
override void | OnGUI (Rect position, SerializedProperty property, GUIContent label) |
OnGUI, draw inspector of the property. More... | |
override float | GetPropertyHeight (SerializedProperty property, GUIContent label) |
Get the height of the property. More... | |
Static Public Member Functions | |
static PropertyDrawer | CreateFallback (PropertyDrawer current) |
Create new fallback drawer for the specified custom UnityEditor.PropertyDrawer . More... | |
Mechanism to make nested UnityEditor.CustomPropertyDrawer
possible.
This'll search the fallback drawer for the caller drawer in the order below:
UnityEngine.PropertyAttribute
order by PropertyAttribute.order
.Here's the simple example to implement in your custom UnityEditor.PropertyDrawer
:
3
|
static |
Create new fallback drawer for the specified custom UnityEditor.PropertyDrawer
.
current | The current drawer. |
override void OnGUI | ( | Rect | position, |
SerializedProperty | property, | ||
GUIContent | label | ||
) |
OnGUI, draw inspector of the property.
position | Position. |
property | Property. |
label | Label. |
override float GetPropertyHeight | ( | SerializedProperty | property, |
GUIContent | label | ||
) |
Get the height of the property.
property | Property. |
label | Label. |