Summary
[Editor-Only] [Pro-Only] A custom drawer for
InspectorGadgets.Attributes.BaseInspectableAttribute
.- Assembly
- Kybernetik
.InspectorGadgets .Editor .dll - Namespace
- InspectorGadgets
.Editor .PropertyDrawers - Interfaces
-
- IComparable
<Base Inspectable >Attribute Drawer
- IComparable
- Base Types
-
- Object
- Derived Types
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 | Base |
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 |
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 |
int |
Compares the
InspectorGadgets.Editor.PropertyDrawers.BaseInspectableAttributeDrawer.BaseAttribute s. |
Initialize |
string |
Initializes this drawer.
|
OnGUI |
void |
Draws this inspectable using
UnityEngine.GUILayout . |
PopulateContextMenu |
void |
Adds various items to the `menu` relating to the `targets`.
|
PrefixLabel |
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
|