Summary
[Pro-Only]
Causes the attributed field to be greyed out and un-editable in the inspector.
- Assembly
- Kybernetik
.InspectorGadgets .dll - Namespace
- InspectorGadgets
.Attributes - Base Types
-
- PropertyAttribute
graph BT
Type-->Base0["PropertyAttribute"]
Type["ReadonlyAttribute"]
class Type type-node
Syntax
[System.Diagnostics.Conditional("UNITY_EDITOR")]
public sealed class ReadonlyAttribute : PropertyAttribute
Attributes
| Type | Description |
|---|---|
| ConditionalAttribute |
Constructors
| Name | Summary |
|---|---|
| ReadonlyAttribute |
Creates a new InspectorGadgets.Attributes.ReadonlyAttribute to apply its effects in the default InspectorGadgets.EditorState
(set in the Edit/Preferences menu.
|
| ReadonlyAttribute |
Creates a new InspectorGadgets.Attributes.ReadonlyAttribute to apply its effects in the specified InspectorGadgets.EditorState.
|
Properties
| Name | Value | Summary |
|---|---|---|
| When | Nullable |
Indicates when the field should be greyed out.
|