Class EnumLinkField<TValueType>
A link field class specialized for enum types.
Inheritance
BaseVisualElement
ExVisualElement
EnumLinkField<TValueType>
Implements
IContextOverrideElement
IAdditionalDataHolder
INotifyValueChanged<TValueType>
Inherited Members
ExVisualElement.contentContainer
ExVisualElement.outlineColor
ExVisualElement.backgroundColor
ExVisualElement.passMask
BaseVisualElement.contextPrefix
BaseVisualElement.scaleOverride
BaseVisualElement.themeOverride
BaseVisualElement.langOverride
BaseVisualElement.layoutDirectionOverride
BaseVisualElement.preferredTooltipPlacementOverride
BaseVisualElement.tooltipDelayMsOverride
BaseVisualElement.GetLayoutDirectionUssClassName(Dir)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.TryGetBinding(BindingId, out Binding)
VisualElement.TryGetDataSourceContext(BindingId, out DataSourceContext)
VisualElement.TryGetLastBindingToUIResult(in BindingId, out BindingResult)
VisualElement.TryGetLastBindingToSourceResult(in BindingId, out BindingResult)
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallbackOnce<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.RegisterCallbackOnce<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
CallbackEventHandler.NotifyPropertyChanged(in BindingId)
Namespace: Unity.Behavior
Assembly: Unity.Behavior.Authoring.dll
Syntax
public class EnumLinkField<TValueType> : BaseLinkField, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IContextOverrideElement, IAdditionalDataHolder, INotifyValueChanged<TValueType> where TValueType : Enum
Type Parameters
Name | Description |
---|---|
TValueType | The enum type represented by the link field. |
Constructors
EnumLinkField()
The default constructor for EnumLinkField, using its generic type for initialization.
Declaration
public EnumLinkField()
EnumLinkField(Type)
A custom constructor taking any type for initialization.
Declaration
public EnumLinkField(Type runtimeType)
Parameters
Type | Name | Description |
---|---|---|
Type | runtimeType | The enum type represented by the link field. |
Properties
value
Declaration
public TValueType value { get; set; }
Property Value
Type | Description |
---|---|
TValueType |
Methods
SetValueWithoutNotify(TValueType)
Declaration
public void SetValueWithoutNotify(TValueType newValue)
Parameters
Type | Name | Description |
---|---|---|
TValueType | newValue |
Implements
Unity.AppUI.UI.IContextOverrideElement
Unity.AppUI.UI.IAdditionalDataHolder
UnityEngine.UIElements.INotifyValueChanged<T>