Class UxmlUIntAttributeDescription
Describes a XML int attribute.
Inheritance
UxmlUIntAttributeDescription
Inherited Members
TypedUxmlAttributeDescription<uint>.defaultValue
UxmlAttributeDescription.xmlSchemaNamespace
Namespace: UnityEngine.Perception.UIElements
Assembly: Unity.Perception.Editor.dll
Syntax
public class UxmlUIntAttributeDescription : TypedUxmlAttributeDescription<uint>
Constructors
UxmlUIntAttributeDescription()
Constructor.
Declaration
public UxmlUIntAttributeDescription()
Properties
defaultValueAsString
The default value for the attribute, as a string.
Declaration
public override string defaultValueAsString { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UnityEngine.UIElements.TypedUxmlAttributeDescription<uint>.defaultValueAsString
Methods
GetValueFromBag(IUxmlAttributes, CreationContext)
Retrieves the value of this attribute from the attribute bag. Returns it if it is found, otherwise return defaultValue.
Declaration
public override uint GetValueFromBag(IUxmlAttributes bag, CreationContext cc)
Parameters
Type | Name | Description |
---|---|---|
IUxmlAttributes | bag | The bag of attributes. |
CreationContext | cc | The context in which the values are retrieved. |
Returns
Type | Description |
---|---|
uint | The value of the attribute. |
Overrides
UnityEngine.UIElements.TypedUxmlAttributeDescription<uint>.GetValueFromBag(UnityEngine.UIElements.IUxmlAttributes, UnityEngine.UIElements.CreationContext)
TryGetValueFromBag(IUxmlAttributes, CreationContext, ref uint)
Tries to retrieve the value of this attribute from the attribute bag. Returns it if it is found, otherwise return defaultValue.
Declaration
public bool TryGetValueFromBag(IUxmlAttributes bag, CreationContext cc, ref uint value)
Parameters
Type | Name | Description |
---|---|---|
IUxmlAttributes | bag | The bag of attributes. |
CreationContext | cc | The context in which the values are retrieved. |
uint | value | Output value of the attribute |
Returns
Type | Description |
---|---|
bool | True if value was successfully received |