Class UxmlUIntAttributeDescription
Describes a XML int attribute.
Namespace: UnityEngine.Perception.UIElements
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 |
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 |
---|---|
UInt32 | The value of the attribute. |
TryGetValueFromBag(IUxmlAttributes, CreationContext, ref UInt32)
Declaration
public bool TryGetValueFromBag(IUxmlAttributes bag, CreationContext cc, ref uint value)
Parameters
Type | Name | Description |
---|---|---|
IUxmlAttributes | bag | |
CreationContext | cc | |
UInt32 | value |
Returns
Type | Description |
---|---|
Boolean |