TryGetValueFromBag(IUxmlAttributes, CreationContext, ref int)
Attempts to retrieve the value of this attribute from the attribute bag and returns true if found, otherwise false.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
TryGetValueFromBag(IUxmlAttributes, CreationContext, int)
public bool TryGetValueFromBag(IUxmlAttributes bag, CreationContext cc, ref int value)
Parameters
The bag of attributes.
The context in which the values are retrieved.
The value of the attribute.
Returns
Type | Description |
|---|---|
| bool | True if the value is found, false otherwise. |