Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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


    Mar 11, 2016

    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


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


    Mar 11, 2016
    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.