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
  3. Dismiss Notice

2D Shader Graph Gradient Preview does not match Runtime

Discussion in 'Graphics Experimental Previews' started by ATypicalUser, Apr 26, 2020.

  1. ATypicalUser


    Apr 26, 2020
    I'm working on a simple 2D gradient shader for my UI buttons.
    The graph is based on the gradient in the shader graph examples but the output looks
    weird. My gradient has red as first and orange as second color. In the runtime my button looks completely different with a hard edge instead of a smooth transition (image below).
    Is this a bug or did I miss something?

    Unity Version 2020.1, URP

    CaptureSG1.PNG CaptureSG2.PNG CaptureSG3.PNG