# Equals

> Returns true if the objects are equal.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Build.Content](/engine/6000.7/script-reference/unityeditor/build/content.md)
* **Assembly:** UnityEditor.CoreModule

## Equals(Object)

Returns true if the objects are equal.

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

### Parameters

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

### Returns

| Type                                                          | Description                           |
| ------------------------------------------------------------- | ------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if all fields are equal. |

### Remarks

Internal use only. See [ObjectIdentifier](/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier.md).

## Equals(ObjectIdentifier)

Returns true if the objects are equal.

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

### Parameters

**** (\[ObjectIdentifier]\(/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier)): The other object identifier to check equality with.

### Returns

| Type                                                          | Description                           |
| ------------------------------------------------------------- | ------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if all fields are equal. |

### Remarks

Internal use only. See [ObjectIdentifier](/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier.md).
