Search Unity

Question How to upgrade shader graph?

Discussion in 'Universal Render Pipeline' started by playinpond, Dec 6, 2022.

  1. playinpond

    playinpond

    Joined:
    Jul 16, 2019
    Posts:
    5
    I want to upgrade my materials in my project to Urp materials but it says that there's no converter to convert shader graphs. Is there a way to get around this?
     
  2. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    769
    Hi, you can try opening the shader graph and add URP to the Active Targets. (and remove Built-In according to your needs)
    ShaderGraph_Target_URP.png
     
  3. playinpond

    playinpond

    Joined:
    Jul 16, 2019
    Posts:
    5
    Thanks but it was already added. Have any idea what else I can try?
     
  4. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    769
    I think that the shader graph should support URP automatically after adding targets.

    Is the graph using custom nodes? Maybe some of them (containing shader codes directly) are not designed for URP.

    And the shader graph may throw compiling errors when selecting it in inspector, is this the case?
     
  5. playinpond

    playinpond

    Joined:
    Jul 16, 2019
    Posts:
    5
    No none of them are using custom nodes and they are not throwing errors

    Here is one of the shader graphs and the material if thats helpful.

    Screen Shot 2022-12-07 at 7.24.18 AM.png Screen Shot 2022-12-07 at 7.24.54 AM.png