# Equals

> Returns true if the resolutions are equal.

## Definition

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

## Equals(Resolution)

Returns true if the resolutions are equal.

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

### Parameters

**** (\[Resolution]\(/engine/6000.7/script-reference/unityengine/resolution)): Resolution to compare against.

### Returns

| Type                                                          | Description                                                                                 |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the width, height, and refresh rate of both resolutions are equal, otherwise false. |

### Remarks

Refresh rates are compared as ratios, so fractions that represent the same value are equal even if their numerators and denominators differ. For more information, refer to [RefreshRate.Equals](/engine/6000.7/script-reference/unityengine/refreshrate/equals.md).

## Equals(Object)

Returns true if the resolutions are equal.

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

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): Object to compare against.

### Returns

| Type                                                          | Description                                                                                 |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the width, height, and refresh rate of both resolutions are equal, otherwise false. |

### Remarks

Refresh rates are compared as ratios, so fractions that represent the same value are equal even if their numerators and denominators differ. For more information, refer to [RefreshRate.Equals](/engine/6000.7/script-reference/unityengine/refreshrate/equals.md).
