# SetRenderingResolution(int, int)

> Sets rendering resolution for the display.

## Definition

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

```csharp
public void SetRenderingResolution(int w, int h)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The rendering width in pixels.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The rendering height in pixels.

### Remarks

This method is only supported on Android and iOS platforms. On Windows platforms, you can use [Display.Activate](/engine/6000.6/script-reference/unityengine/display/activate.md) or [Display.SetParams](/engine/6000.6/script-reference/unityengine/display/setparams.md) instead.

You can set the rendering resolution as different to the native display resolution. Refer to [Display.systemWidth](/engine/6000.6/script-reference/unityengine/display/systemwidth.md) and [Display.systemHeight](/engine/6000.6/script-reference/unityengine/display/systemheight.md).
