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 /
This question was closed Nov 30, 2014 at 04:04 PM by RedDevil for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by RedDevil · Nov 29, 2014 at 03:13 PM · androiduisettingsqualityblackscreen

Unity 4.6 Android changing quality level during runtime

Hi!So I am using the new version of Unity and i am changing the quality level like this: I made some buttons then added this script for example:

 QualitySettings.SetQualityLevel(0,true);

Now this sometimes causes the game to go into a permanent black screen until the application is forced to shut down or nothing happends until i restart(which is what i actualy want).Why does this happend and how can i get rid of the black screen?Am i doing something wrong?Please help. Thank you

Comment
Add comment · Show 3
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 RedDevil · Nov 29, 2014 at 07:19 PM 0
Share

any one got any sugestions?

avatar image Joe_User · Nov 29, 2014 at 07:55 PM 0
Share

Are you using Lollipop on the Android device? I've seen this sort of behavior from a couple games on an Android 5.0 Nexus 7, but I'd never seen it happen under Android 4.x.

avatar image RedDevil · Nov 29, 2014 at 08:54 PM 0
Share

it is android 4.3

1 Reply

  • Sort: 
avatar image
1
Best Answer

Answer by psycocrusher · Nov 29, 2014 at 08:35 PM

I don't suggest putting QualitySettings.SetQualityLevel on a button, it was messing up my project last time i checked.

I am using something like this on start up, it's in C#:

     void  AutoQualitySettings (){
         
         int Memory = SystemInfo.systemMemorySize;
         
         int Cpus = SystemInfo.processorCount;
         
         
         if(Cpus == 1){
             
             if(Memory < 700){
                 
                 //Low Res
                 QualitySettings.SetQualityLevel (2, true);    
             }
             
             if(Memory > 700){
                 
                 //Med Res
                 QualitySettings.SetQualityLevel (1, true);
             }
         }
         
         if(Cpus >= 2){
             
             if(Memory < 700){
                 
                 //Med Res
                 QualitySettings.SetQualityLevel (1, true);
             }
             
             if(Memory > 700){
                 
                 //High Res
                 QualitySettings.SetQualityLevel (0, true);    
             }
         }
     }
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 RedDevil · Nov 29, 2014 at 08:55 PM 0
Share

hmm good sugestion...if i dont find a better sollution i will use this.Thank you

Follow this Question

Answers Answers and Comments

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

Related Questions

Bumpy shadow edges in both the Unity editor, and on Android 0 Answers

android terrain textures problem 2 Answers

Android Game not working 2 Answers

Character Controller with Unity User Iterface input 1 Answer

Android Videos quality setting 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