Summary
[Editor-Only] [Pro-Only] A custom drawer for
UnityEngine.Object
fields.- Assembly
- Kybernetik
.InspectorGadgets .Editor .dll - Namespace
- InspectorGadgets
.Editor .PropertyDrawers - Base Types
-
- PropertyDrawer
- Derived Types
graph BT
Type-->Base0["PropertyDrawer"]
Type["ObjectDrawer"]
class Type type-node
Derived0["ShowPreviewAttributeDrawer"]-->Type
click Derived0 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/ShowPreviewAttributeDrawer"
Derived1["ReadonlyAttributeDrawer"]-->Type
click Derived1 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/ReadonlyAttributeDrawer"
Derived2["UniqueCollectionAttributeDrawer"]-->Type
click Derived2 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/UniqueCollectionAttributeDrawer"
Derived3["LabelledCollectionAttributeDrawer"]-->Type
click Derived3 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/LabelledCollectionAttributeDrawer"
Derived4["RequiredAttributeDrawer"]-->Type
click Derived4 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/RequiredAttributeDrawer"
Derived5["ColorAttributeDrawer"]-->Type
click Derived5 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/ColorAttributeDrawer"
Syntax
[CustomPropertyDrawer(typeof(Object), true)]
public class ObjectDrawer : PropertyDrawer
Attributes
Type | Description |
---|---|
CustomPropertyDrawer |
Fields
Name | Constant Value | Summary |
---|---|---|
AlwaysShowGet |
Should the get button always be visible?
static
|
|
Italicise |
Should references to components on the same object be italicised?
static
|
|
Object |
The number of nesting levels allowed.
static
|
Methods
Name | Value | Summary |
---|---|---|
GetPropertyHeight |
float | |
OnGUI |
void |