RadioButton
A control that allows users to select a single option inside a RadioButtonGroup. For more information, refer to UXML element RadioButton.
Read time 7 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: BaseBoolField
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<bool>, IMixedValueSupport
public class RadioButton : BaseBoolField, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<bool>, IMixedValueSupport
Static Fields
Value | Description |
|---|---|
| checkmarkBackgroundUssClassName | USS class name of checkmark background in RadioButton elements. |
| checkmarkUssClassName | USS class name of checkmark in RadioButton elements. |
| inputUssClassName | USS class name of input elements in RadioButton elements. |
| labelUssClassName | USS class name for Labels in RadioButton elements. |
| textUssClassName | USS class name of Text elements in RadioButton elements. |
| ussClassName | USS class name for RadioButton elements. |
Constructors
Constructor | Description |
|---|---|
| RadioButton() | Creates a RadioButton with no label. |
| RadioButton(System.String) | Creates a RadioButton with a Label and a default manipulator. |