MoveNode(AccessibilityNode, AccessibilityNode, int)
Moves the node elsewhere in the hierarchy, which causes the given node to be parented by a different node in the hierarchy. An optional index can be supplied for specifying the position within the list of children the moved node should take (zero-based). If no index is supplied, the node is added
読み終わるまでの所要時間 1 分最終更新 15時間前
Definition
- Type: Method
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
public bool MoveNode(AccessibilityNode node, AccessibilityNode newParent, int newChildIndex = -1)
Parameters
The node to move.
The new parent of the moved node, or if the moved node should be made into a root node.
nullAn optional zero-based index for positioning the moved node in the new parent's children list, or in the list of roots if the node is becoming a root node. If the index is not provided or is invalid, the moved node will be the last child of its parent.
Returns
Type | Description |
|---|---|
| bool | Whether the node was successfully moved. |