Summary
[Pro-Only]
Adds the attributed field or property to the inspector as if it were serialized.
- Assembly
- Kybernetik
.InspectorGadgets .dll - Namespace
- InspectorGadgets
.Attributes - Interfaces
-
- IComparable
<Base Inspectable >Attribute
- IComparable
- Base Types
-
- Attribute
- Base
Inspectable Attribute
graph BT
Type-->Base0["BaseInspectableAttribute"]
click Base0 "/inspector-gadgets/api/InspectorGadgets.Attributes/BaseInspectableAttribute"
Base0-->Base1["Attribute"]
Type-.->Interface0["IComparable<BaseInspectableAttribute>"]
Type["InspectableAttribute"]
class Type type-node
Syntax
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public sealed class InspectableAttribute : BaseInspectableAttribute,
IComparable<BaseInspectableAttribute>
Attributes
| Type | Description |
|---|---|
| Attribute |
Properties
| Name | Value | Summary |
|---|---|---|
| ConstantlyRepaint | bool |
If true, the inspector will be constantly repainted while this label is shown to keep it updated.
|
| DisplayIndex | int |
If set, this inspectable will be drawn at the specified index amongst the regular serialized fields instead
of after them.
Inherited from Base
|
| Label | string |
The label to use as a prefix before the value. If not set, it will use the name of the attributed member.
Inherited from Base
|
| LabelContent | GUIContent |
The
UnityEngine.GUIContent used for this inspectable's label, creates from the InspectorGadgets.Attributes.BaseInspectableAttribute.Label and
InspectorGadgets.Attributes.BaseInspectableAttribute.Tooltip.
Inherited from Base
|
| Readonly | bool |
If true, the displayed field will be greyed out so the user can't modify it.
|
| Tooltip | string |
The tooltip to use as for the label. If not set, it will use the full name of the attributed member.
Inherited from Base
|
| When | EditorState |
Determines when this attribute should be active.
Inherited from Base
|
| WhenNullable | Nullable |
Determines when this attribute should be active.
Inherited from Base
|
Methods
| Name | Value | Summary |
|---|---|---|
| CompareTo |
int |
Compares the
InspectorGadgets.Attributes.BaseInspectableAttribute.DisplayIndex of this inspectable to the specified `other`.Inherited from Base
|