NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ShaderGraph.Drawing.MaterialGraphEditWindow.ToSubGraph () (at ./Library/PackageCache/com.unity.shadergraph@14.0.9/Editor/Drawing/MaterialGraphEditWindow.cs:991)
UnityEditor.ShaderGraph.Drawing.MaterialGraphView.ConvertToSubgraph (UnityEngine.UIElements.DropdownMenuAction action) (at ./Library/PackageCache/com.unity.shadergraph@14.0.9/Editor/Drawing/Views/MaterialGraphView.cs:918)
UnityEngine.UIElements.DropdownMenuAction.Execute () (at <f6650f702d1247c2a5311a89b759ba03>:0)
UnityEditor.UIElements.EditorMenuExtensions+<>c__DisplayClass0_0.<PrepareMenu>b__0 () (at <78fe3e0b66cf40fc8dbec96aa3584483>:0)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at <78fe3e0b66cf40fc8dbec96aa3584483>:0)
Editor Version 2022.3.16f1 (latest 2022 LTS) (now updated to 2022.3.27f1, as corrected by @DevDunk )
I do not understand what is going on here, I think this is a bug.
I can still create a subgraph, create the code inside it… but it is very inconvenient to do when there is a tool that should work, but does not.
yep, the issue is still there after updating. I’ll try a brand new project and see if it works differently from my converted one, if not then I’ll file a bug report
Yeah true, just observing that the ‘2022.3.x not having the issue’ is not correct. I’ll try updating to the newest, but if their resolution was ‘won’t fix’, I doubt it will have magically dissappeared…