Search Unity

Question I can't build my Unity game anymore. Error while building Render Graph

Discussion in 'Shaders' started by aaronmichaelfrost, Aug 15, 2021.

  1. aaronmichaelfrost

    aaronmichaelfrost

    Joined:
    Feb 4, 2021
    Posts:
    39
    Hey everyone,

    I'm a little worried because when I build my Unity project it won't render the cameras. They are just blank grey/black. It does render the UI though.

    In edit mode, it works completely fine.

    Looking at the debug console (through a script that prints it to the screen), I get tons of these warnings:

    Error while building Render Graph.
    ArgumentNullException: Value cannot be null.
    Parameter name: shader

    I don't understand the context of this problem?

    I am using HDRP in Unity 2020.3.15f2.

    I really need help on this one.

    Thanks,
    Aaron
     
  2. aaronmichaelfrost

    aaronmichaelfrost

    Joined:
    Feb 4, 2021
    Posts:
    39
     
  3. aaronmichaelfrost

    aaronmichaelfrost

    Joined:
    Feb 4, 2021
    Posts:
    39
    Fixed by replacing HDRP Asset in Project Settings -> Graphics with a new one. Create -> Rendering -> hdrp asset