GetValueFromBag(IUxmlAttributes, CreationContext)
Method that retrieves an attribute's value from an attribute bag. Returns it if it is found, otherwise return defaultValue.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public override Type GetValueFromBag(IUxmlAttributes bag, CreationContext cc)
Parameters
The attribute bag.
The context in which the method retrieves attribute values.
Returns
Type | Description |
|---|---|
| Type | The attribute's value. If the method cannot find the value, returns defaultValue. |