Class OptionalEnumField<T>
A UI-Toolkit field that can be used to edit an OptionalEnum<T>.
Inheritance
OptionalEnumField<T>
Implements
INotifyValueChanged<OptionalEnum<T>>
Inherited Members
BaseField<OptionalEnum<T>>.labelUssClassName
BaseField<OptionalEnum<T>>.inputUssClassName
BaseField<OptionalEnum<T>>.noLabelVariantUssClassName
BaseField<OptionalEnum<T>>.labelDraggerVariantUssClassName
BaseField<OptionalEnum<T>>.mixedValueLabelUssClassName
BaseField<OptionalEnum<T>>.alignedFieldUssClassName
BaseField<OptionalEnum<T>>.mixedValueString
BaseField<OptionalEnum<T>>.serializedPropertyCopyName
BaseField<OptionalEnum<T>>.UpdateMixedValueContent()
BaseField<OptionalEnum<T>>.SetValueWithoutNotify(OptionalEnum<T>)
BaseField<OptionalEnum<T>>.rawValue
BaseField<OptionalEnum<T>>.value
BaseField<OptionalEnum<T>>.labelElement
BaseField<OptionalEnum<T>>.label
BaseField<OptionalEnum<T>>.showMixedValue
BaseField<OptionalEnum<T>>.mixedValueLabel
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.Core
Assembly: Unity.AppUI.dll
Syntax
public class OptionalEnumField<T> : BaseField<OptionalEnum<T>>, IEventHandler, IVisualElementScheduler, IExperimentalFeatures, ITransitionAnimations, ITransform, IResolvedStyle, IBindable, INotifyValueChanged<OptionalEnum<T>>, IMixedValueSupport where T : Enum
Type Parameters
Name | Description |
---|---|
T | The enum type. |
Constructors
OptionalEnumField(string, VisualElement)
Constructs an OptionalEnumField<T> with the given label and visual input.
Declaration
public OptionalEnumField(string label, VisualElement visualInput)
Parameters
Type | Name | Description |
---|---|---|
string | label | The label of the field. |
VisualElement | visualInput | The visual input of the field. |
Fields
ussClassName
The USS class name of this element.
Declaration
public const string ussClassName = "unity-optional-field"
Field Value
Type | Description |
---|---|
string |
Implements
UnityEngine.UIElements.INotifyValueChanged<T>