Class TypedUxmlAttributeDescription<T>
Base class for all the uxml specific attributes.
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public abstract class TypedUxmlAttributeDescription<T> : UxmlAttributeDescription
Type Parameters
Name | Description |
---|---|
T |
Properties
defaultValue
The default value to be used for that specific attribute.
Declaration
public T defaultValue { get; set; }
Property Value
Type | Description |
---|---|
T |
defaultValueAsString
The string representation of the default value of the uxml attribute.
Declaration
public override string defaultValueAsString { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
Methods
GetValueFromBag(IUxmlAttributes, CreationContext)
Use this method to obtain the actual value of the attribute.
Declaration
public abstract T GetValueFromBag(IUxmlAttributes bag, CreationContext cc)
Parameters
Type | Name | Description |
---|---|---|
IUxmlAttributes | bag | The bag of attributes where to get the actual value. |
CreationContext | cc | The creation context. |
Returns
Type | Description |
---|---|
T | The value of type T. |