# Equals

> Checks if this shader tag identifier and the object refer to the same string.

## Definition

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

## Equals(Object)

Checks if this shader tag identifier and the object refer to the same string.

```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) | Returns `true` if the shader tag identifier and the object refer to the same string. Otherwise, returns `false`. |

## Equals(ShaderTagId)

Checks if this shader tag identifier and the object refer to the same string.

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

### Parameters

**** (\[ShaderTagId]\(/engine/6000.6/script-reference/unityengine/rendering/shadertagid)): The `ShaderTagId` to compare.

### Returns

| Type                                                          | Description                                                                                                      |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns `true` if the shader tag identifier and the object refer to the same string. Otherwise, returns `false`. |
