Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question 2020 Shader Graph and URP - no errors - just doesn't work

Discussion in 'Shader Graph' started by alexrau, Apr 1, 2021.

  1. alexrau

    alexrau

    Joined:
    Mar 1, 2015
    Posts:
    80
    Started a new project in 2020 LTS, imported URP, created pipeline, set in graphics, imported Shaded Graph* and when I go to shader graph all I see in "the Pink of Doom". Doesn't seem like it got some dependency correctly, but there are no compile errors or warning in the console. Tried Closing and reopening the project, but that did not fix it. Any idea what I am doing wrong or how to fix it?

     
    Last edited: Apr 1, 2021
    Sarumans_77 likes this.
  2. Camarent

    Camarent

    Joined:
    Feb 19, 2014
    Posts:
    168
    You need to specify Active targets. When you add Universal it should be working again.

    Beware: Do not use URP and HDRP targets at the same time because it will break srp batcher in URP.
     
    alexrau likes this.
  3. Sarumans_77

    Sarumans_77

    Joined:
    Apr 21, 2020
    Posts:
    3
    Hi! I have the same issue as well, and I have specified a target... (Universal, Unlit, Opaque)

    I'm afraid it did not help...
    Any more suggestions?

    My Shaders are all displaying pink in both Shader Graph Main Preview, Scene and Game Preview.
    All the nodes however do display normally.
     

    Attached Files: