# Equals

> Compares this SecondarySpriteTexture object to another one.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.3/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## Equals(SecondarySpriteTexture)

Compares this SecondarySpriteTexture object to another one.

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

### Parameters

**** (\[SecondarySpriteTexture]\(/engine/6000.3/script-reference/unityengine/secondaryspritetexture)): The other SecondarySpriteTexture object to be compared to.

### Returns

| Type                                                          | Description                                                 |
| ------------------------------------------------------------- | ----------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if both object have the same name and texture. |

## Equals(Object)

Compares this SecondarySpriteTexture object to another one.

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

### Parameters

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

### Returns

| Type                                                          | Description                                                 |
| ------------------------------------------------------------- | ----------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if both object have the same name and texture. |
