How can we change the screen resolutions at runtime?

I have problem to change the resolution while run time.
I have 3 scenes

  1. 1st scene resolution is 600X400
  2. 2nd scene resolution is 800X600
  3. 3rd scene resolution is 1024X960

Use the Screen.SetResolution function:

int windowWidthSize = 800;
int windowHeightSize = 600;
bool setToFullscreen = false;

Screen.SetResolution(windowWidthSize, windowHeightSize, setToFullscreen);

Set the screen resolution in the beginning of the scene.

SetResolution documentation

Good luck!