UxmlAssetAttributeDescription<T>
Describes a UXML Object attribute referencing an asset in the project. In UXML, this is referenced as a string URI.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: TypedUxmlAttributeDescription<T>
public class UxmlAssetAttributeDescription<T> : TypedUxmlAttributeDescription<T> where T : Object
Constructors
Constructor | Description |
|---|---|
| UxmlAssetAttributeDescription`1() | Constructor. |
Properties
Property | Description |
|---|---|
| defaultValueAsString | The default value for the attribute, as a string. |
Methods
Method | Description |
|---|---|
| GetValueFromBag | Retrieves the value of this attribute from the attribute bag. Returns it if it is found, otherwise return null. |
| TryGetValueFromBag | Attempts to retrieve the value of this attribute from the attribute bag and returns true if found, otherwise false. |