BaseInspectableAttributeDrawer<T> Class

Summary

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

Syntax

public abstract class BaseInspectableAttributeDrawer<T> : BaseInspectableAttributeDrawer, 
    IComparable<BaseInspectableAttributeDrawer>
    where T : BaseInspectableAttribute

Type Parameters

Name Description
T

Properties

Name Value Summary
Attribute T
The attribute being drawn.
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