ReadonlyAttributeDrawer Class

Summary

[Editor-Only] [Pro-Only] A custom drawer for fields with a InspectorGadgets.Attributes.ReadonlyAttribute.
graph BT Type-->Base0["ObjectDrawer"] click Base0 "/inspector-gadgets/api/InspectorGadgets.Editor.PropertyDrawers/ObjectDrawer" Base0-->Base1["PropertyDrawer"] Type["ReadonlyAttributeDrawer"] class Type type-node

Syntax

[CustomPropertyDrawer(typeof(ReadonlyAttribute))]
public sealed class ReadonlyAttributeDrawer : ObjectDrawer

Attributes

Type Description
CustomPropertyDrawer

Fields

Name Constant Value Summary
AlwaysShowGet
Should the get button always be visible?
Inherited from ObjectDrawer
static
ItaliciseSelfReferences
Should references to components on the same object be italicised?
Inherited from ObjectDrawer
static
ObjectEditorNestLimit
The number of nesting levels allowed.
Inherited from ObjectDrawer
static

Methods