GetValueFromBag(IUxmlAttributes, CreationContext)
Retrieves the value of this attribute from the attribute bag. Returns the value if found; otherwise, it returns defaultValue.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public override T GetValueFromBag(IUxmlAttributes bag, CreationContext cc)
Parameters
The bag of attributes.
The context in which the values are retrieved.
Returns
Type | Description |
|---|---|
| T | The value of the attribute. |