Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
ClosefirstNode | The first node to find the lowest common ancestor of. |
secondNode | The second node to find the lowest common ancestor of. |
AccessibilityNode
The lowest common ancestor of the two given nodes, or null
if there is no common ancestor.
Retrieves the lowest common ancestor of two nodes in the hierarchy. The lowest common ancestor is the node that is the common node that both nodes share in their path to the root node of their branch in the hierarchy.