UxmlTypeAttributeDescription<TBase>
Describes an XML System.Type attribute.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: TypedUxmlAttributeDescription<Type>
public class UxmlTypeAttributeDescription<TBase> : TypedUxmlAttributeDescription<Type>
Constructors
Constructor | Description |
|---|---|
| UxmlTypeAttributeDescription`1() | Constructor. |
Properties
Property | Description |
|---|---|
| defaultValueAsString | The default value for the attribute, as a string. |
Methods
Method | Description |
|---|---|
| GetValueFromBag | Method that retrieves an attribute's value from an attribute bag. Returns it if it is found, otherwise return defaultValue. |
| TryGetValueFromBag | Method that tries to retrieve an attribute's value from an attribute bag.. Returns true if it is found, otherwise returns false. |