# Resolution

> Represents a display resolution.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule
* **Implements:** [IEquatable\<Resolution>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct Resolution : IEquatable<Resolution>
```

## Remarks

Resolution structures are returned by [Screen.resolutions](/engine/6000.0/script-reference/unityengine/screen/resolutions.md) property.

## Properties

| Property                                                                                       | Description                               |
| ---------------------------------------------------------------------------------------------- | ----------------------------------------- |
| [height](/engine/6000.0/script-reference/unityengine/resolution/height.md)                     | Resolution height in pixels.              |
| [refreshRateRatio](/engine/6000.0/script-reference/unityengine/resolution/refreshrateratio.md) | Resolution's vertical refresh rate in Hz. |
| [width](/engine/6000.0/script-reference/unityengine/resolution/width.md)                       | Resolution width in pixels.               |

## Methods

| Method                                                                               | Description                                          |
| ------------------------------------------------------------------------------------ | ---------------------------------------------------- |
| [Equals](/engine/6000.0/script-reference/unityengine/resolution/equals.md)           | Returns true if the resolutions are equal.           |
| [GetHashCode](/engine/6000.0/script-reference/unityengine/resolution/gethashcode.md) | Returns the hash code for this resolution.           |
| [ToString](/engine/6000.0/script-reference/unityengine/resolution/tostring.md)       | Returns a nicely formatted string of the resolution. |

## Operators

| Operator                                                                               | Description                                  |
| -------------------------------------------------------------------------------------- | -------------------------------------------- |
| [operator ==](/engine/6000.0/script-reference/unityengine/resolution/op-equality.md)   | Returns true if two resolutions are equal.   |
| [operator !=](/engine/6000.0/script-reference/unityengine/resolution/op-inequality.md) | Returns true if two resolutions are unequal. |
