ToolbarAttribute Class

Summary

[Pro-Only] Causes a bool, string, or enum field to be drawn in the inspector as a series of toggle buttons rather than the usual dropdown list or text field.
Assembly
Kybernetik.InspectorGadgets.dll
Namespace
InspectorGadgets.Attributes
Base Types
  • PropertyAttribute
graph BT Type-->Base0["PropertyAttribute"] Type["ToolbarAttribute"] class Type type-node

Syntax

[System.Diagnostics.Conditional("UNITY_EDITOR")]
public sealed class ToolbarAttribute : PropertyAttribute

Attributes

Type Description
ConditionalAttribute

Constructors

Name Summary
ToolbarAttribute() Creates a new InspectorGadgets.Attributes.ToolbarAttribute.
ToolbarAttribute(string[]) Creates a new InspectorGadgets.Attributes.ToolbarAttribute using the specified labels (not required for enums).

Fields

Name Constant Value Summary
Labels
The labels for each button in the toolbar. Enums will use their own names.

Properties

Name Value Summary
Label string
If set, this string will replace the field's default label.