Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Sprites crunched on bundles are too bright as if sRGB is turned OFF while its ON

Discussion in 'Editor & General Support' started by Kunnogi, May 11, 2022.

  1. Kunnogi

    Kunnogi

    Joined:
    Apr 29, 2019
    Posts:
    12
    Happens on player and editor, the sample project attached can reproduce it quite easily, happens from 2022 version onwards, anything before that dont has this issue. Theres 2 sprites there that are packed on a bundle, one dont has multiple of 4 width/height so it dont gets crunched, the other has, so it does, the one that gets crunched, when loaded, will be brighter as if the sRGB option on the sprite importer was OFF, even though its actually ON, building the bundle using older unity and then loading on the 2022 unity persists the issue. Simply try Assets/Build Bundles, and then run, one will show as if sRGB is OFF while the other will show properly.
    Seems that if i build from 2022 having textures with crunch compression on at resources folder, when i try to load them the same issue happens.
     

    Attached Files:

    Last edited: May 11, 2022
    RaL, Lyris1, Johnroy3 and 3 others like this.
  2. gamefox87

    gamefox87

    Joined:
    Aug 19, 2016
    Posts:
    64
    Please fix this for the next version of Unity. It's a bug.
     
  3. Johnroy3

    Johnroy3

    Joined:
    May 12, 2022
    Posts:
    1
    We need this to be fixed as soon as possible :/
     
  4. gamefox87

    gamefox87

    Joined:
    Aug 19, 2016
    Posts:
    64
    Note that this works on Unity 2021. The bug is introduced in 2022. Any image that gets crunched (because it is a multiple of 4 for width/height), will lose its sRGB, causing the image to appear bright.
     
  5. gamefox87

    gamefox87

    Joined:
    Aug 19, 2016
    Posts:
    64
    This error was submitted through the Unity error reporting system as well. Hopefully it has been looked at before the next update.
     
    epernigo likes this.