- Home /
Question by
XenonSpher · Jun 28, 2016 at 07:23 AM ·
resolutionscreensetmultiple-monitors
how to Screen.SetResolution() for 2nd monitor/multiple monitor
Hi How do I call the 2nd monitor or any other monitor other than the main default monitor so that I could use Screen.SetResolution only for that 2nd monitor? here is my script:
public int width;
public int height;
public InputField widthInput;
public InputField heightInput;
public void changeResolution()
{
width = int.Parse(widthInput.text);
height = int.Parse(heightInput.text);
Screen.SetResolution(width, height, false);
}
I just wanna use that script to change the 2nd monitor. not the main default one..because with this script only it will change the main default one.
Comment