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

Question Why does my UITK elements look washed out at runtime?

Discussion in 'UI Toolkit' started by Kemorno, May 21, 2023.

  1. Kemorno

    Kemorno

    Joined:
    Apr 5, 2017
    Posts:
    18
    Me and some friends have been working on injecting UITK into an Unity game, everything is working fine as of now but the colors, on runtime look washed out.
    Unity Editor:

    Game:


    from what we've investigated, it seems like its displaying the sdr colors for the ui, while the game is in HDR colors. This was seen with Xbox's sdr/hdr tool. The image below is the orinal game's UI, in sdr and hdr respectively. Being the right image the one seen in game.


    after some more tests, we found that the colors seems to follow a linear (instead of RGB) color space, as seen in the graph below, real color being the one in the UnityEditor, Game the one seen in game after injecting the UITK UI:


    We mostly want to know if this is a known issue that happens in non injected UI and if theres already a fix for this! thx
     
    Last edited: May 21, 2023
  2. mikejm_

    mikejm_

    Joined:
    Oct 9, 2021
    Posts:
    346
  3. Kemorno

    Kemorno

    Joined:
    Apr 5, 2017
    Posts:
    18