Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    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:
    157
    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:
    8
    I just encountered it now. 2020.1.0b4. Happens everytime I create a custom node.
     
  3. Cell-i-Zenit

    Cell-i-Zenit

    Joined:
    Mar 11, 2016
    Posts:
    157
    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
     
    david21, cla08, Mordus and 2 others like this.
unityunity