# SetResolution

> This has the same functionality as Screen.SetResolution and also mimics platform-specific behavior in the Unity Editor.

## Definition

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

## SetResolution(int, int, FullScreenMode, RefreshRate)

This has the same functionality as [Screen.SetResolution](/engine/6000.6/script-reference/unityengine/screen/setresolution.md) and also mimics platform-specific behavior in the Unity Editor.

```csharp
public static void SetResolution(int width, int height, FullScreenMode fullscreenMode, RefreshRate preferredRefreshRate)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[FullScreenMode]\(/engine/6000.6/script-reference/unityengine/fullscreenmode)): **** (\[RefreshRate]\(/engine/6000.6/script-reference/unityengine/refreshrate)):&#x20;

## SetResolution(int, int, FullScreenMode)

This has the same functionality as [Screen.SetResolution](/engine/6000.6/script-reference/unityengine/screen/setresolution.md) and also mimics platform-specific behavior in the Unity Editor.

```csharp
public static void SetResolution(int width, int height, FullScreenMode fullscreenMode)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[FullScreenMode]\(/engine/6000.6/script-reference/unityengine/fullscreenmode)):&#x20;

## SetResolution(int, int, bool)

This has the same functionality as [Screen.SetResolution](/engine/6000.6/script-reference/unityengine/screen/setresolution.md) and also mimics platform-specific behavior in the Unity Editor.

```csharp
public static void SetResolution(int width, int height, bool fullscreen)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;
