Open NeistH2o opened 4 months ago
I can confirm that this issue exists. As far as I can tell it happens when the input of a register variable changes from vector4 to float or vice versa.
If you can figure out which node causes the problem in a graph, you can temporarily uninstall the package, delete the node, reinstall the package and the graph will work again (even if the rest still contains variables).
For some reason I can't explain, I get an exception when one of my graphs is open, I recently updated from v1.0.0 to v1.0.5 .
The problem with this error is that the graph becomes impossible to edit, as Unity throws NullReferenceExceptions when I try to move a node, create or delete one, or anything else.
I copied the exception I'm getting below but what is happening seems to be that an edge that links two node seems to have its node variable set to null, and unity fails to recover from there. At least that's what I understood, but I failed to prevent this from happening, and I don't know exactly what is the root cause, as other graphs seem to work without problem.
The only way I found to get back control over the graph was to add
return null;
at the very beginning of theConnect(Port a, Port b, bool noValidate = false)
method inSGVariables.cs
.I can't share the shadergraph file here but let me know if you want me to send it to you in some other way.
Errors (collapsed)
```csharp ArgumentNullException: Value cannot be null. Parameter name: identifier UnityEditor.Undo.RegisterCompleteObjectUndo (UnityEngine.Object objectToUndo, System.String name) (at