# Equals(VisualElementReference)

> Indicates whether the current object is equal to another element reference.

## Definition

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

```csharp
public bool Equals(VisualElementReference other)
```

### Parameters

**** (\[VisualElementReference]\(/engine/6000.5/script-reference/unityengine/uielements/visualelementreference)): The instance to compare against.

### Returns

| Type                                                          | Description                                                                                                                                                                                                                        |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if `other` has the same [PanelRenderer](/engine/6000.5/script-reference/unityengine/uielements/panelrenderer.md) and matching [AuthoringIdPath](/engine/6000.5/script-reference/unityengine/uielements/authoringidpath.md). |
