Shadergraph throws Value cannot be null. Parameter name: identifier exception

Hi,

i cannot do anything in shadergraph. I cannot rename or delete any node. It throws this exeption:

ArgumentNullException: Value cannot be null.
Parameter name: identifier

Even creating a new shadergraph doesnt help… What is interesting is that when i create a new project, it works as expected. So somehow my project got corrupted, but i dont know how… anyone can help me?

Iam using unity 2020.1.b4

1 Like

I just encountered it now. 2020.1.0b4. Happens everytime I create a custom node.

1 Like

I found a fix for it…

so when you open a shader in shadergraph you get an exception like this “rectangle width and height cant be 0”…

how to fix it?

  1. Click in shadergraph on the top right “Main Preview”, to enable it
  2. Search in the window for a small preview window which is “minimized”…
  3. grab the corner and resize the preview window so it displays anything. (eg size is not “0” as said in the exception)
  4. Close the shadergraph window
  5. reopen it, it should now be fine and you can use it as expected
10 Likes