Search Unity

Question Quality loss after building

Discussion in '2D' started by shenmue360i, Mar 21, 2023.

  1. shenmue360i

    shenmue360i

    Joined:
    Aug 16, 2022
    Posts:
    7
    Hello everyone, my assets look blurry after building for windows. I will attach the assets (before and after building), and some Unity settings.
    Scene.png Player.png Quality.png
     
  2. flasker

    flasker

    Joined:
    Aug 5, 2022
    Posts:
    193
    change sprite to point filter
     
  3. shenmue360i

    shenmue360i

    Joined:
    Aug 16, 2022
    Posts:
    7
    Thank you for the reply, can you elaborate a bit more? where to find that setting?
     
  4. Autoface

    Autoface

    Joined:
    Sep 23, 2013
    Posts:
    112
    Click your texture in the project files, then change the filter mode to "Point (no filter) in the inspector.
    upload_2023-3-24_0-41-30.png
     
  5. shenmue360i

    shenmue360i

    Joined:
    Aug 16, 2022
    Posts:
    7
    tried it, still there is a quality drop when i build the game :(
     
  6. Autoface

    Autoface

    Joined:
    Sep 23, 2013
    Posts:
    112
    Hmm ok, Im going to just take some stabs at this. I dont know if any of this will sort the issue out but it might be worth a try.

    Maybe your game isnt displaying in the correct aspect ratio. Check all these and test.
    upload_2023-3-24_21-47-59.png

    Also for your texture settings in the inspector. Set compression to None and see what happens when you build:
    upload_2023-3-24_21-50-38.png

    Also send a few screenshots of your sprite settings in the inspector.
     
  7. Saniell

    Saniell

    Joined:
    Oct 24, 2015
    Posts:
    194
    Are you sure you're running the game in 4k? Because in game view you have 4k, but in project settings default screen size is FullHD and you disabled "Default Is Native"
     
  8. shenmue360i

    shenmue360i

    Joined:
    Aug 16, 2022
    Posts:
    7
    Thank you for your reply, i set the default screen width and height to 3840x2160 and i checked all the aspect ratios.
    i set compression from High Quality to none as you said, after building it looks like the game is set to Full HD quality, but in unity it runs on the 4K quality.
    Here is the screenshot you asked for upload_2023-3-25_7-50-43.png
     
  9. shenmue360i

    shenmue360i

    Joined:
    Aug 16, 2022
    Posts:
    7
    I tried with "default is native", i tried with 1920x1080, and with 3840x2160, the problem still persists.
    In unity the sprites look great on 4K resolution, but when i build it, it seems that it turns to Full HD quality.
     
  10. flasker

    flasker

    Joined:
    Aug 5, 2022
    Posts:
    193
    its the problem of your monitor maybe your monitor doesnt have 4k?

    also you have to remove compression completely, set it to "none"

    to further troubleshoot you should activate the option to select resolution when you open the build

    you can also set a text that shows currentresolution.width and .height

    and you can also force the resolution to go to 4k by code
     
  11. shenmue360i

    shenmue360i

    Joined:
    Aug 16, 2022
    Posts:
    7
    If my monitor doesn't support 4K then the same resolution/quality should be in both unity and the exe don't you think?
    i will try those solutions and see what happens.
     
  12. flasker

    flasker

    Joined:
    Aug 5, 2022
    Posts:
    193
    thats not true, unity can be used to test resolutions that your screen doesnt support. Of course then when you try it out in build full screen it looks blurry if its not on the correct resolution
     
  13. shenmue360i

    shenmue360i

    Joined:
    Aug 16, 2022
    Posts:
    7
    Then that would explain everything, if you're definitely sure about his info then thank you, you just fixed my problem ;)
     
  14. flasker

    flasker

    Joined:
    Aug 5, 2022
    Posts:
    193
    but like i say you can make some tests to confirm, like put debug text that shows your resolution, or make a build with the same resolution of your screen and see if it looks good
     
  15. DragonCoder

    DragonCoder

    Joined:
    Jul 3, 2015
    Posts:
    1,700