RadioButtonGroup
A control that allows single selection out of a logical group of RadioButton elements. Selecting one will deselect the others. For more information, refer to UXML element RadioButtonGroup.
Read time 9 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: BaseField<int>
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<int>
[UxmlElement(libraryPath = "Controls")][Icon("UIToolkit/Icons/RadioButtonGroup.png")]public class RadioButtonGroup : BaseField<int>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<int>
Static Fields
Value | Description |
|---|---|
| containerUssClassName | USS class name of container element of this type. |
| ussClassName | USS class name for RadioButtonGroup elements. |
Constructors
Constructor | Description |
|---|---|
| RadioButtonGroup() | Initializes and returns an instance of RadioButtonGroup. |
| RadioButtonGroup(System.String,System.Collections.Generic.List{System.String}) | Initializes and returns an instance of RadioButtonGroup. |
Properties
Property | Description |
|---|---|
| choices | The list of available choices in the group. |