Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
2
Question by Marquis · Mar 04, 2010 at 02:41 PM · settingsqualitylodin-game

In-game quality control

Hi all,

I do apologise if this has been asked already. I've tried the search option but cant seem to find the answer I'm looking for. (I'm probably searching the wrong text)

Is it possible to be able to change the unity player settings when in-game?

Im working on a project that i know will be run on some higher end systems, but also very probably on some very low systems and im wanting to know if i can have an in game option for changing the quality settings of the scene. i.e turning off lighting, changing it from beautiful to fastest etc so it runs smoothly. This will be web based.

Any help would be great.

I'm also fairly new to scripting in unity.

Thanks again

Comment
Add comment · Show 2
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 Ashkan_gc · Mar 04, 2010 at 09:38 PM 0
Share

the search functionality of the documentation is not as well as it should be. so you can not find things with that. use google search and tell it to search in unity's online documentation. juset use the query:url syntax.

avatar image Marquis · Mar 07, 2010 at 07:19 PM 0
Share

Thank you for the replies.

Thats awesome, thank you all very much :D

3 Replies

· Add your reply
  • Sort: 
avatar image
6

Answer by burnumd · Mar 04, 2010 at 03:51 PM

The QualitySettings class provides access to both the predefined quality levels (via the "currentLevel" field) and finer-grained control over specific aspects of the current quality level. Quality level settings are defined in Edit->Project Settings->Quality. If you're interested in automatic quality changes based on framerate, the "PerformanceTweak" script in the Island Demo project is a great starting point. Otherwise a simple selection grid in whatever menu you want will accomplish what you want, eg:

QualitySettings.currentLevel = (QualityLevel)GUILayout.SelectionGrid ((int)QualitySettings.currentLevel, prettyQualityLevelStrings, xCount);
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
avatar image
2

Answer by duck · Mar 04, 2010 at 03:36 PM

Yes, you can do this in your own scripts via the QualitySettings class.

It allows you to adjust the individual elements such as pixel light count and shadow cascades, and also to just step up and down through your pre-defined quality levels using the IncreaseLevel and DecreaseLevel functions.

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
avatar image
1

Answer by JDonavan 1 · Mar 04, 2010 at 11:21 PM

The pause menu script on the wiki gives a good example on how to use the QualitySettings.

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

1 Person is following this question.

avatar image

Related Questions

Accessing quality settings in-game 1 Answer

Adjustable Fog In Settings Scene 0 Answers

Change the keycode in game by associating it to the previous script 0 Answers

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

LWRP setting anti-aliasing of already created render texture is not supported 4 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