# Equals

> Checks if this reference and another reference are equal.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.CoreModule

## Equals(UnityObjectRef\<T>)

Checks if this reference and another reference are equal.

```csharp
public bool Equals(UnityObjectRef<T> other)
```

### Parameters

**** (\[UnityObjectRef\<T>]\(/engine/7000.0/script-reference/unity/entities/unityobjectref1)): The UnityObjectRef to compare for equality.

### Returns

| Type                                                          | Description                           |
| ------------------------------------------------------------- | ------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two references are equal. |

## Equals(Object)

Checks if this object references the same UnityEngine.Object as another object.

```csharp
public override bool Equals(object obj)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The object to compare.

### Returns

| Type                                                          | Description                                                               |
| ------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if obj is a UnityObjectRef that points to the same instance as this. |
