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.
阅读时间1 分钟最后更新于 1 个月前
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. |