# Equals

> Compares two ShaderMessage on an element-by-element basis.

## Definition

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

## Equals(ShaderMessage)

Compares two ShaderMessage on an element-by-element basis.

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

### Parameters

**** (\[ShaderMessage]\(/engine/6000.6/script-reference/unityeditor/shadermessage)):&#x20;

### Returns

| Type                                                          | Description                                                   |
| ------------------------------------------------------------- | ------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all fields of the message are equal, otherwise false. |

## Equals(Object)

Compares two ShaderMessage on an element-by-element basis.

```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 all fields of the message are equal, otherwise false. |
