[FoldoutGroup]

Groups fields into a collapsible foldout section.

Parameters

Parameter Name
Arguments
Description

name

string

Display name and group identifier for the foldout.

Style

string

Custom GUI style name for the foldout header.

Examples

[FoldoutGroup("Regular Foldout")]
public string strValue1 = "Some text...";

[FoldoutGroup("Regular Foldout")]
public int intValue1 = 77;

[FoldoutGroup("Box Group Foldout", Style = FoldoutStyle.Group)]
public bool boolValue1 = false;

[FoldoutGroup("Box Group Foldout", Style = FoldoutStyle.Group)]
public float floatValue1 = 3.14f;

[FoldoutGroup("Header Group Foldout", Style = FoldoutStyle.Header)]
public bool boolValue2 = false;

[FoldoutGroup("Header Group Foldout", Style = FoldoutStyle.Header)]
public float floatValue2 = 3.14f;

[FoldoutGroup("Highlight Group Foldout", Style = FoldoutStyle.Highlight)]
public bool boolValue3 = false;

[FoldoutGroup("Highlight Group Foldout", Style = FoldoutStyle.Highlight)]
public float floatValue3 = 3.14f;

Last updated