- Home /
How can I change Screen Resolution and Quality Settings at runtime?
Hello. I am wanting to put a options button and it leads to a GUI. What command can I use? Something like resolution and quality.
EDIT: I mean like I already have a button but I need a code line that will change the resoulution and quality settings. I KNOW HOW TO USE GUI. I WANT TO KNOW HOW TO CHANGE RESOLUTION AND QUALITY SETTINGS IN GAME.
No, I meant a question I want to know how to change the graphics settings in game by using code, not how to make a button GUI. I already know how to use GUI and all. I'm sorry if the question was worded wrong but this is what I wanted to know.
Sorry if I misread your question. Hopefully @Statements links are what you are looking for.
Answer by Statement · Dec 22, 2013 at 01:21 AM
Check out Screen for resolutions.
Check out QualitySettings for Quality options.
For detailed control refer to the QualitySettings docs.
Answer by ofikabaconstrips · Dec 22, 2013 at 02:21 AM
Here bool inWindow = false; Screen.SetResolution(newWidth, newHeight, inWindow);