TryGetValueFromBag(IUxmlAttributes, CreationContext, ref T)
Attempts to retrieve the value of this attribute from the attribute bag and returns true if found, otherwise false.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
TryGetValueFromBag(IUxmlAttributes, CreationContext, T)
public bool TryGetValueFromBag(IUxmlAttributes bag, CreationContext cc, ref T value)
Parameters
The bag of attributes.
The context in which the values are retrieved.
Returns
Type | Description |
|---|---|
| bool | True if the value is found, false otherwise. |