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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Changing GameObject's sprite according to quality setting

Discussion in 'General Graphics' started by TheCreepySheep, Sep 16, 2015.

  1. TheCreepySheep

    TheCreepySheep

    Joined:
    Jul 10, 2015
    Posts:
    3
    Hello,
    since I did not see any subforums for textures, I'm going to ask this here.
    Is there any way to change and object's sprite according to the quality setting selected from launcher.

    This is my current character sprite:

    I want it to change to blue for example when I change quality to Fantastic.
     
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    I'm not a code guy - but changing the quality setting will not change the sprite - it will only change the quality the sprite displays at.
    This is not what quality setting is used for.

    It's kind of a funny question. Have you gone through the learning content for Unity?
    Look into the 2D section, and specifically sprites.
     
  3. TheCreepySheep

    TheCreepySheep

    Joined:
    Jul 10, 2015
    Posts:
    3
    I've gone trough most of it (and quite a bit of forum content), but what I thought about now is somehow detecting the quality setting and displaying different sprites accordingly.
     
  4. TheCreepySheep

    TheCreepySheep

    Joined:
    Jul 10, 2015
    Posts:
    3
    I figured it out.
    On Startup, I check for QualitySettings.GetQualityLevel.

    Pretty damn simple. Should've thought of this earlier.
     
    MattGen and theANMATOR2b like this.