# Equals

> Returns true if the given object type and target name is exactly equal to this type and target name.

## Definition

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

## Equals(Object)

Returns true if the given object type and target name is exactly equal to this type and target name.

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

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)):&#x20;

### Returns

| Type                                                          | Description                                                                                  |
| ------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the given object target name and type is exactly equal to this target name and type. |

## Equals(NamedBuildTarget)

Returns true if the given NamedBuildTarget target name is exactly equal to this target name.

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

### Parameters

**** (\[NamedBuildTarget]\(/engine/6000.5/script-reference/unityeditor/build/namedbuildtarget)): The other NameBuildTarget that is used for equality check

### Returns

| Type                                                          | Description                                                                          |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the given NamedBuildTarget target name is exactly equal to this target name. |
