[BoxGroup]

Groups fields into a visual box with a header label.

Parameters

Parameter
Type
Description

name

string

Display name and group identifier.

CenterLabel

bool

Center the header label.

BoldLabel

bool

Use bold font for the header label.

Tooltip

string

Tooltip text shown on header hover.

ContextMenuClick

string

Method name to invoke on context menu click.

HideHeader

bool

Hide the header label and only display the content bounds.

Examples

[BoxGroup("Player Stats")]
public int health = 100;

[BoxGroup("Player Stats")]
public int armor = 50;

[BoxGroup("Centered Group", CenterLabel = true)]
public float centeredValue = 1f;

[BoxGroup("With Tooltip", Tooltip = "This group contains important settings")]
public bool important = true;

[BoxGroup("Hidden Header", HideHeader = true)]
public string hiddenHeaderValue = "Content only";

[BoxGroup("Hidden Header", HideHeader = true)]
public int hiddenHeaderNumber = 42;

Last updated