# FindCommonAncestor(VisualElement)

> Finds the lowest common ancestor between two VisualElements inside the VisualTree hierarchy.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public VisualElement FindCommonAncestor(VisualElement other)
```

### Parameters

**** (\[VisualElement]\(/engine/6000.5/script-reference/unityengine/uielements/visualelement)):&#x20;

### Returns

| Type                                                                                     | Description |
| ---------------------------------------------------------------------------------------- | ----------- |
| [VisualElement](/engine/6000.5/script-reference/unityengine/uielements/visualelement.md) |             |
