[ToggleBoxGroup]

Groups fields into a collapsible section with a toggle checkbox in the header.

Parameters

Parameter Name
Arguments
Description

name

string

Display name and group identifier.

expression

string

Boolean field name that controls the toggle state.

BoldLabel

bool

Use bold font for the header label.

Examples

[HideInInspector]
public bool enableFeatures = true;

[ToggleBoxGroup("Features", "enableFeatures")]
public bool featureA = true;

[ToggleBoxGroup("Features", "enableFeatures")]
public int featureBValue = 10;

[ToggleBoxGroup("Features", "enableFeatures")]
public string featureCName = "Feature";

Last updated