Class Vector4Field
Vector4 Field UI element.
Implements
INotifyValueChanged<Vector4>
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 Vector4Field : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder, IInputElement<Vector4>, IValidatableElement<Vector4>, ISizeableElement, INotifyValueChanging<Vector4>, INotifyValueChanged<Vector4>
Constructors
Vector4Field()
Default constructor.
Declaration
public Vector4Field()
Fields
rowUssClassName
The Vector4Field row styling class.
Declaration
public const string rowUssClassName = "appui-vector4field__row"
Field Value
Type | Description |
---|---|
string |
sizeUssClassName
The Vector4Field size styling class.
Declaration
public const string sizeUssClassName = "appui-vector4field--size-"
Field Value
Type | Description |
---|---|
string |
ussClassName
The Vector4Field main styling class.
Declaration
public const string ussClassName = "appui-vector4field"
Field Value
Type | Description |
---|---|
string |
wFieldUssClassName
The Vector4Field W NumericalField styling class.
Declaration
public const string wFieldUssClassName = "appui-vector4field__w-field"
Field Value
Type | Description |
---|---|
string |
xFieldUssClassName
The Vector4Field X NumericalField styling class.
Declaration
public const string xFieldUssClassName = "appui-vector4field__x-field"
Field Value
Type | Description |
---|---|
string |
yFieldUssClassName
The Vector4Field Y NumericalField styling class.
Declaration
public const string yFieldUssClassName = "appui-vector4field__y-field"
Field Value
Type | Description |
---|---|
string |
zFieldUssClassName
The Vector4Field Z NumericalField styling class.
Declaration
public const string zFieldUssClassName = "appui-vector4field__z-field"
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
The content container of the Vector4Field.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
Overrides
invalid
The invalid state of the Vector4Field.
Declaration
public bool invalid { get; set; }
Property Value
Type | Description |
---|---|
bool |
size
The size of the Vector4Field.
Declaration
public Size size { get; set; }
Property Value
Type | Description |
---|---|
Size |
validateValue
The validation function of the Vector4Field.
Declaration
public Func<Vector4, bool> validateValue { get; set; }
Property Value
Type | Description |
---|---|
Func<Vector4, bool> |
value
The value of the Vector4Field.
Declaration
public Vector4 value { get; set; }
Property Value
Type | Description |
---|---|
Vector4 |
Methods
GetSizeUssClassName(Size)
Declaration
public static string GetSizeUssClassName(Size enumValue)
Parameters
Type | Name | Description |
---|---|---|
Size | enumValue |
Returns
Type | Description |
---|---|
string |
SetValueWithoutNotify(Vector4)
Set the value of the Vector4Field without notifying the change.
Declaration
public void SetValueWithoutNotify(Vector4 newValue)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | newValue | The new value of the Vector4Field. |
Implements
UnityEngine.UIElements.INotifyValueChanged<T>