Class OptionalField<T>
A UI-Toolkit field that can be used to edit an Optional<T>.
Inheritance
OptionalField<T>
Implements
INotifyValueChanged<Optional<T>>
Inherited Members
BaseField<Optional<T>>.labelUssClassName
BaseField<Optional<T>>.inputUssClassName
BaseField<Optional<T>>.noLabelVariantUssClassName
BaseField<Optional<T>>.labelDraggerVariantUssClassName
BaseField<Optional<T>>.mixedValueLabelUssClassName
BaseField<Optional<T>>.alignedFieldUssClassName
BaseField<Optional<T>>.mixedValueString
BaseField<Optional<T>>.serializedPropertyCopyName
BaseField<Optional<T>>.UpdateMixedValueContent()
BaseField<Optional<T>>.SetValueWithoutNotify(Optional<T>)
BaseField<Optional<T>>.rawValue
BaseField<Optional<T>>.value
BaseField<Optional<T>>.labelElement
BaseField<Optional<T>>.label
BaseField<Optional<T>>.showMixedValue
BaseField<Optional<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 OptionalField<T> : BaseField<Optional<T>>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<Optional<T>>, IMixedValueSupport
Type Parameters
Name | Description |
---|---|
T | The type of the value. |
Constructors
OptionalField(string, VisualElement)
Constructs an OptionalField<T> with the given label and visual input.
Declaration
public OptionalField(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>