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