Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

QualitySettings.GetQualityLevel doesn't seem to return reliable values

Discussion in 'Editor & General Support' started by HonoraryBob, Jul 25, 2018.

  1. HonoraryBob

    HonoraryBob

    Joined:
    May 26, 2011
    Posts:
    1,212
    Since other people have run into the same problem, I'm assuming there's a bug that causes QualitySettings.GetQualityLevel to return zero regardless of the current setting, at least in some circumstances. That seems to happen for me in the build (but not in the editor), and other people have reported the same problem, such as in this post: https://answers.unity.com/questions/1037255/get-current-quality-settings.html

    I'm using 5.0.1.
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,419
    Is updating to a newer Unity version an option for you? 5.x is unsupported already and perhaps it's fixed in 2017.4 LTS.
     
  3. HonoraryBob

    HonoraryBob

    Joined:
    May 26, 2011
    Posts:
    1,212
    I can't upgrade in the middle of a project.
     
  4. HonoraryBob

    HonoraryBob

    Joined:
    May 26, 2011
    Posts:
    1,212
    Further testing found that the problem only happens on some machines, which seems very strange given that it should just be reading from a Unity variable rather than doing something that's platform-specific. But when it happens, it makes the game look terrible by defaulting to the lowest setting.