Class RadioGroup
A container for a set of Radio UI elements.
Implements
INotifyValueChanged<string>
Inherited Members
VisualElement.ExecuteDefaultAction(EventBase)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class RadioGroup : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder, IInputElement<string>, IValidatableElement<string>, INotifyValueChanged<string>
Constructors
RadioGroup()
Default constructor.
Declaration
public RadioGroup()
Fields
ussClassName
The RadioGroup main styling class.
Declaration
public const string ussClassName = "appui-radiogroup"
Field Value
| Type | Description |
|---|---|
| string |
Properties
contentContainer
The RadioGroup content container.
Declaration
public override VisualElement contentContainer { get; }
Property Value
| Type | Description |
|---|---|
| VisualElement |
Overrides
invalid
The RadioGroup invalid state.
Declaration
public bool invalid { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
validateValue
The RadioGroup validation function.
Declaration
public Func<string, bool> validateValue { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<string, bool> |
value
The selected item key.
Declaration
public string value { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | if the value is out of range. |
Methods
SetValueWithoutNotify(string)
Set the value without notifying the listeners.
Declaration
public void SetValueWithoutNotify(string newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| string | newValue | The new value. |
Implements
UnityEngine.UIElements.INotifyValueChanged<T>