TryGetValueFromBag(IUxmlAttributes, CreationContext, ref Type)
Method that tries to retrieve an attribute's value from an attribute bag.. Returns true if it is found, otherwise returns false.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
TryGetValueFromBag(IUxmlAttributes, CreationContext, Type)
public bool TryGetValueFromBag(IUxmlAttributes bag, CreationContext cc, ref Type value)
Parameters
The attribute bag.
The context in which the method retrieves attribute values.
The attribute's value.
Returns
Type | Description |
|---|---|
| bool | True if the method can retrieve the attribute's value. False otherwise. |