Class Radio
Radio UI element.
Implements
INotifyValueChanged<bool>
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 Radio : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder, IValidatableElement<bool>, INotifyValueChanged<bool>, IPressable
Constructors
Radio()
Default constructor.
Declaration
public Radio()
Fields
boxUssClassName
The Radio button styling class.
Declaration
public const string boxUssClassName = "appui-radio__button"
Field Value
Type | Description |
---|---|
string |
checkmarkUssClassName
The Radio checkmark styling class.
Declaration
public const string checkmarkUssClassName = "appui-radio__checkmark"
Field Value
Type | Description |
---|---|
string |
emphasizedUssClassName
The Radio emphasized mode styling class.
Declaration
public const string emphasizedUssClassName = "appui-radio--emphasized"
Field Value
Type | Description |
---|---|
string |
labelUssClassName
The Radio label styling class.
Declaration
public const string labelUssClassName = "appui-radio__label"
Field Value
Type | Description |
---|---|
string |
sizeUssClassName
The Radio size styling class.
Declaration
public const string sizeUssClassName = "appui-radio--size-"
Field Value
Type | Description |
---|---|
string |
ussClassName
The Radio main styling class.
Declaration
public const string ussClassName = "appui-radio"
Field Value
Type | Description |
---|---|
string |
Properties
clickable
Clickable Manipulator for this Radio.
Declaration
public Pressable clickable { get; set; }
Property Value
Type | Description |
---|---|
Pressable |
emphasized
The Radio emphasized mode.
Declaration
public bool emphasized { get; set; }
Property Value
Type | Description |
---|---|
bool |
invalid
The Radio invalid state.
Declaration
public bool invalid { get; set; }
Property Value
Type | Description |
---|---|
bool |
key
The Radio key.
Declaration
public string key { get; set; }
Property Value
Type | Description |
---|---|
string |
label
The Radio label.
Declaration
public string label { get; set; }
Property Value
Type | Description |
---|---|
string |
size
The Radio size.
Declaration
public Size size { get; set; }
Property Value
Type | Description |
---|---|
Size |
validateValue
The Radio validation function.
Declaration
public Func<bool, bool> validateValue { get; set; }
Property Value
Type | Description |
---|---|
Func<bool, bool> |
value
The Radio value.
Declaration
public bool value { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
GetSizeUssClassName(Size)
Declaration
public static string GetSizeUssClassName(Size enumValue)
Parameters
Type | Name | Description |
---|---|---|
Size | enumValue |
Returns
Type | Description |
---|---|
string |
SetValueWithoutNotify(bool)
Sets the Radio value without notifying the listeners.
Declaration
public void SetValueWithoutNotify(bool newValue)
Parameters
Type | Name | Description |
---|---|---|
bool | newValue | The new value. |
Implements
UnityEngine.UIElements.INotifyValueChanged<T>