TryGetNode(int, out AccessibilityNode)
Tries to get the node in this hierarchy that has the given ID.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
TryGetNode(int, AccessibilityNode)
public bool TryGetNode(int id, out AccessibilityNode node)
Parameters
The ID of the node to retrieve.
The valid node with the associated ID, or if no such node exists in this hierarchy.
nullReturns
Type | Description |
|---|---|
| bool | Returns true if a node is found and false otherwise. |