Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Programmeric · Dec 21, 2013 at 09:27 PM · qualityresolution settingsqualitysettingsoptions

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.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Programmeric · Dec 22, 2013 at 12:31 AM 0
Share

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.

avatar image robertbu · Dec 22, 2013 at 02:10 AM 0
Share

Sorry if I misread your question. Hopefully @Statements links are what you are looking for.

avatar image Programmeric · Dec 22, 2013 at 04:15 AM 0
Share

It's ok. It was my fault anyways. :D

avatar image MegaManX_777 · Jul 17, 2015 at 06:58 PM 0
Share

Thank you all so much!

2 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by Statement · Dec 22, 2013 at 01:21 AM

Check out Screen for resolutions.

  • Screen.resolutions

  • Screen.SetResolution

Check out QualitySettings for Quality options.

  • QualitySettings.names

  • QualitySettings.SetQualityLevel

  • QualitySettings.DecreaseLevel

  • QualitySettings.IncreaseLevel

  • For detailed control refer to the QualitySettings docs.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Programmeric · Dec 22, 2013 at 04:14 AM 0
Share

Thanks man.

avatar image
0

Answer by ofikabaconstrips · Dec 22, 2013 at 02:21 AM

Here bool inWindow = false; Screen.SetResolution(newWidth, newHeight, inWindow);

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Some quality settings not saving when altered in-game 0 Answers

V Sync Count CAN'T be set in editor...??? New bug? 2 Answers

Quality Settings To Turn On Object 1 Answer

How can it be achieved better graphics and lower loading time in UNITY WebGL (especially for mobile browsers)? 1 Answer

Start with settings from updater 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges