Class BoundsField
Bounds Field UI element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class BoundsField : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder, IInputElement<Bounds>, IValidatableElement<Bounds>, ISizeableElement, INotifyValueChanging<Bounds>, INotifyValueChanged<Bounds>
Constructors
BoundsField()
Default constructor.
Declaration
public BoundsField()
Fields
labelUssClassName
The BoundsField Label styling class.
Declaration
public const string labelUssClassName = "appui-boundsfield__label"
Field Value
Type | Description |
---|---|
string |
rowUssClassName
The BoundsField row styling class.
Declaration
public const string rowUssClassName = "appui-boundsfield__row"
Field Value
Type | Description |
---|---|
string |
sizeUssClassName
The BoundsField size styling class.
Declaration
public const string sizeUssClassName = "appui-boundsfield--size-"
Field Value
Type | Description |
---|---|
string |
sxFieldUssClassName
The BoundsField X NumericalField styling class.
Declaration
public const string sxFieldUssClassName = "appui-boundsfield__sx-field"
Field Value
Type | Description |
---|---|
string |
syFieldUssClassName
The BoundsField Y NumericalField styling class.
Declaration
public const string syFieldUssClassName = "appui-boundsfield__sy-field"
Field Value
Type | Description |
---|---|
string |
szFieldUssClassName
The BoundsField Z NumericalField styling class.
Declaration
public const string szFieldUssClassName = "appui-boundsfield__sz-field"
Field Value
Type | Description |
---|---|
string |
ussClassName
The BoundsField main styling class.
Declaration
public const string ussClassName = "appui-boundsfield"
Field Value
Type | Description |
---|---|
string |
xFieldUssClassName
The BoundsField X NumericalField styling class.
Declaration
public const string xFieldUssClassName = "appui-boundsfield__x-field"
Field Value
Type | Description |
---|---|
string |
yFieldUssClassName
The BoundsField Y NumericalField styling class.
Declaration
public const string yFieldUssClassName = "appui-boundsfield__y-field"
Field Value
Type | Description |
---|---|
string |
zFieldUssClassName
The BoundsField Z NumericalField styling class.
Declaration
public const string zFieldUssClassName = "appui-boundsfield__z-field"
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
The content container of the BoundsField. Always null.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
Overrides
invalid
Set the validation state of the BoundsField.
Declaration
public bool invalid { get; set; }
Property Value
Type | Description |
---|---|
bool |
size
The BoundsField size.
Declaration
public Size size { get; set; }
Property Value
Type | Description |
---|---|
Size |
validateValue
The validation function of the BoundsField.
Declaration
public Func<Bounds, bool> validateValue { get; set; }
Property Value
Type | Description |
---|---|
Func<Bounds, bool> |
value
The value of the BoundsField.
Declaration
public Bounds value { get; set; }
Property Value
Type | Description |
---|---|
Bounds |
Methods
GetSizeUssClassName(Size)
Declaration
public static string GetSizeUssClassName(Size enumValue)
Parameters
Type | Name | Description |
---|---|---|
Size | enumValue |
Returns
Type | Description |
---|---|
string |
SetValueWithoutNotify(Bounds)
Sets the value of the BoundsField without notifying the value changed callback.
Declaration
public void SetValueWithoutNotify(Bounds newValue)
Parameters
Type | Name | Description |
---|---|---|
Bounds | newValue | The new value of the BoundsField. |