Class NavigationDrawer
Inherited Members
PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
PropertyDrawer.attribute
PropertyDrawer.fieldInfo
PropertyDrawer.preferredLabel
Namespace: UnityEditor.UI
Assembly: UnityEditor.UI.dll
Syntax
[CustomPropertyDrawer(typeof(Navigation), true)]
public class NavigationDrawer : PropertyDrawer
Methods
CreatePropertyGUI(SerializedProperty)
Declaration
public override VisualElement CreatePropertyGUI(SerializedProperty property)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializedProperty | property |
Returns
| Type | Description |
|---|---|
| VisualElement |
Overrides
UnityEditor.PropertyDrawer.CreatePropertyGUI(UnityEditor.SerializedProperty)
GetPropertyHeight(SerializedProperty, GUIContent)
Declaration
public override float GetPropertyHeight(SerializedProperty prop, GUIContent label)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializedProperty | prop | |
| GUIContent | label |
Returns
| Type | Description |
|---|---|
| float |
Overrides
UnityEditor.PropertyDrawer.GetPropertyHeight(UnityEditor.SerializedProperty, UnityEngine.GUIContent)
OnGUI(Rect, SerializedProperty, GUIContent)
Declaration
public override void OnGUI(Rect pos, SerializedProperty prop, GUIContent label)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | pos | |
| SerializedProperty | prop | |
| GUIContent | label |
Overrides
UnityEditor.PropertyDrawer.OnGUI(UnityEngine.Rect, UnityEditor.SerializedProperty, UnityEngine.GUIContent)