Search Unity

URP and UI Image.color tween

Discussion in 'Editor & General Support' started by kernelkode, Sep 16, 2020.

  1. kernelkode

    kernelkode

    Joined:
    Jan 27, 2014
    Posts:
    19
    Hi, I am trying to move my 2019.4.8f1 project from standard renderer to URP. I have a scene that tweens a (UI Image.color) that is the background and the only thing rendered in the scene (fade from gray of unity startup screen to black), but after moving to URP the fade stutters and is choppy (seems like 3 FPS).

    What am I doing wrong? Same code works fine on standard renderer.

    Thanks
     
    Last edited: Oct 2, 2020
  2. kernelkode

    kernelkode

    Joined:
    Jan 27, 2014
    Posts:
    19
    I have tried doing this color fade manually in Update() (instead of using doTween) and I am still seeing the same behavior. I counted 575+ updates per second, yet I am only seeing about 3-4 color steps in a fade over 1 second.

    Any help would be appreciated.

    Thanks
     
  3. kernelkode

    kernelkode

    Joined:
    Jan 27, 2014
    Posts:
    19
    Is there a another way I should be doing a full screen color fade?
     
  4. kernelkode

    kernelkode

    Joined:
    Jan 27, 2014
    Posts:
    19
    I found that switching the Project Setting -> Player -> Color Space from Linear to Gamma made the behavior the same.

    I will look into learning about linear vs gamma color space.