Summary
[Pro-Only]
Editor.Editor<T>
uses these attributes to add extra elements to the inspector.
- Assembly
- Kybernetik
.InspectorGadgets .dll - Namespace
- InspectorGadgets
.Attributes - Interfaces
-
- IComparable
<Base Inspectable >Attribute
- IComparable
- Base Types
-
- Attribute
- Derived Types
graph BT
Type-->Base0["Attribute"]
Type-.->Interface0["IComparable<BaseInspectableAttribute>"]
Type["BaseInspectableAttribute"]
class Type type-node
Derived0["LabelAttribute"]-->Type
click Derived0 "/inspector-gadgets/api/InspectorGadgets.Attributes/LabelAttribute"
Derived1["ButtonAttribute"]-->Type
click Derived1 "/inspector-gadgets/api/InspectorGadgets.Attributes/ButtonAttribute"
Derived2["InspectableAttribute"]-->Type
click Derived2 "/inspector-gadgets/api/InspectorGadgets.Attributes/InspectableAttribute"
Syntax
[System.Diagnostics.Conditional("UNITY_EDITOR")]
public abstract class BaseInspectableAttribute : Attribute, IComparable<BaseInspectableAttribute>
Attributes
Type | Description |
---|---|
ConditionalAttribute |
Properties
Name | Value | Summary |
---|---|---|
DisplayIndex | int |
If set, this inspectable will be drawn at the specified index amongst the regular serialized fields instead
of after them.
|
Label | string |
The label to use as a prefix before the value. If not set, it will use the name of the attributed member.
|
LabelContent | GUIContent |
The
UnityEngine.GUIContent used for this inspectable's label, creates from the InspectorGadgets.Attributes.BaseInspectableAttribute.Label and
InspectorGadgets.Attributes.BaseInspectableAttribute.Tooltip .
|
Tooltip | string |
The tooltip to use as for the label. If not set, it will use the full name of the attributed member.
|
When | EditorState |
Determines when this attribute should be active.
|
WhenNullable | Nullable |
Determines when this attribute should be active.
|
Methods
Name | Value | Summary |
---|---|---|
CompareTo |
int |
Compares the
InspectorGadgets.Attributes.BaseInspectableAttribute.DisplayIndex of this inspectable to the specified `other`. |