BaseInspectableAttributeDrawer Class

Summary

[Editor-Only] [Pro-Only] A custom drawer for InspectorGadgets.Attributes.BaseInspectableAttribute.
graph BT Type-->Base0["Object"] Type-.->Interface0["IComparable<BaseInspectableAttributeDrawer>"] Type["BaseInspectableAttributeDrawer"] class Type type-node Derived0["BaseInspectableAttributeDrawer<T>"]-->Type click Derived0 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/BaseInspectableAttributeDrawer_1"

Syntax

public abstract class BaseInspectableAttributeDrawer : IComparable<BaseInspectableAttributeDrawer>

Properties

Name Value Summary
BaseAttribute BaseInspectableAttribute
The attribute being drawn.
DisplayIndex int
InspectorGadgets.Attributes.BaseInspectableAttribute.DisplayIndex
LabelStyle GUIStyle
A style based on the default label with the font set to italic.
static
Member MemberInfo
The attributed member.
When EditorState
InspectorGadgets.Attributes.BaseInspectableAttribute.When

Methods

Name Value Summary
CheckContextMenu(Rect, Object[]) void
If UnityEngine.Event.current is a Context Click within the `area`, this method creates a menu, calls InspectorGadgets.Editor.PropertyDrawers.BaseInspectableAttributeDrawer.PopulateContextMenu(UnityEditor.GenericMenu,UnityEngine.Object[]), and shows it as a context menu.
CompareTo(BaseInspectableAttributeDrawer) int
Compares the InspectorGadgets.Editor.PropertyDrawers.BaseInspectableAttributeDrawer.BaseAttributes.
Initialize() string
Initializes this drawer.
OnGUI(Object[]) void
Draws this inspectable using UnityEngine.GUILayout.
PopulateContextMenu(GenericMenu, Object[]) void
Adds various items to the `menu` relating to the `targets`.
PrefixLabel(GUIContent) Rect
Draws a label like UnityEditor.EditorGUILayout.PrefixLabel(System.String) but doesn't get greyed out if the GUI is disabled for the following control.
static