Class GroupBox
This is an enclosing container for a group of UnityEngine.UIElements.IGroupBoxOption. All group options within this container will interact together to allow a single selection, using the UnityEngine.UIElements.DefaultGroupManager. Default options are RadioButton, but users can provide other implementations. If no UnityEngine.UIElements.IGroupBox is found in the hierarchy, the default container will be the panel.
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public class GroupBox : BindableElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, IGroupBox
Constructors
GroupBox()
Creates a GroupBox with no label.
Declaration
public GroupBox()
GroupBox(String)
Creates a GroupBox with a title.
Declaration
public GroupBox(string text)
Parameters
Type | Name | Description |
---|---|---|
String | text | The title text. |
Fields
labelUssClassName
USS class name for Labels in GroupBox elements.
Declaration
public static readonly string labelUssClassName
Field Value
Type | Description |
---|---|
String |
Remarks
ussClassName
USS class name for GroupBox elements.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
String |
Remarks
Unity adds this USS class to every instance of the GroupBox element. Any styling applied to this class affects every GroupBox located beside, or below the stylesheet in the visual tree.
Properties
text
The title text of the box.
Declaration
public string text { get; set; }
Property Value
Type | Description |
---|---|
String |