Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetRenderingResolution(int, int)

Sets rendering resolution for the display.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public void SetRenderingResolution(int w, int h)

Parameters

The rendering width in pixels.

The rendering height in pixels.

Remarks

This method is only supported on Android and iOS platforms. On Windows platforms, you can use Display.Activate or Display.SetParams instead.
You can set the rendering resolution as different to the native display resolution. Refer to Display.systemWidth and Display.systemHeight.