Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

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

Discussion in '2020.1 Beta' started by Cell-i-Zenit, Apr 4, 2020.

  1. Cell-i-Zenit

    Cell-i-Zenit

    Joined:
    Mar 11, 2016
    Posts:
    290
    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
     
    Richay likes this.
  2. justadaniel

    justadaniel

    Joined:
    Aug 19, 2015
    Posts:
    11
    I just encountered it now. 2020.1.0b4. Happens everytime I create a custom node.
     
    Slock20969 likes this.
  3. Cell-i-Zenit

    Cell-i-Zenit

    Joined:
    Mar 11, 2016
    Posts:
    290
    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
     
    oldManPig, dpeter99, hilowman and 7 others like this.