ObjectDrawer Class

Summary

[Editor-Only] [Pro-Only] A custom drawer for UnityEngine.Object fields.
graph BT Type-->Base0["PropertyDrawer"] Type["ObjectDrawer"] class Type type-node Derived0["LabelledCollectionAttributeDrawer"]-->Type click Derived0 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/LabelledCollectionAttributeDrawer" Derived1["UniqueCollectionAttributeDrawer"]-->Type click Derived1 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/UniqueCollectionAttributeDrawer" Derived2["ColorAttributeDrawer"]-->Type click Derived2 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/ColorAttributeDrawer" Derived3["ReadonlyAttributeDrawer"]-->Type click Derived3 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/ReadonlyAttributeDrawer" Derived4["RequiredAttributeDrawer"]-->Type click Derived4 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/RequiredAttributeDrawer" Derived5["ShowPreviewAttributeDrawer"]-->Type click Derived5 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/ShowPreviewAttributeDrawer"

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
ItaliciseSelfReferences
Should references to components on the same object be italicised?
static
ObjectEditorNestLimit
The number of nesting levels allowed.
static

Methods