Copyright © 2026 Unity Technologies
Fixed in next version.
Steps to reproduce:
1. Create new Unity project using Universal 3D Template
2. Create new Sub Graph and open it (right-click > Create > Shader Graph > Sub Graph)
3. Right-click on Output Node > select “Group Selection”
4. When “New Group” is created > right-click on it and select “Delete group and Contents”
5. Observe the Console window
Actual results: An error is thrown in the Console window when using "Delete Group and Contents" on a group that contains the Output Node: “InvalidOperationException: Node Output (9985d42847df4fd5be9c19beddc452f7) cannot be deleted.”
Expected results: No errors are thrown in the Console window. Either the Output Node should be excluded from deletion silently or the "Delete Group and Contents" option should be disabled or unavailable when the group contains the Output Node
Reproducible with versions: 6000.0.76f1, 6000.3.17f1, 6000.4.10f1, 6000.5.0b11, 6000.6.0a6
Tested on (OS): Ubuntu 24.04, macOS Tahoe 26.4.1
Error:
InvalidOperationException: Node Output (9985d42847df4fd5be9c19beddc452f7) cannot be deleted. UnityEditor.ShaderGraph.GraphData.RemoveElements (UnityEditor.ShaderGraph.AbstractMaterialNode[] nodes, UnityEditor.Graphing.IEdge[] edges, UnityEditor.ShaderGraph.GroupData[] groups, UnityEditor.ShaderGraph.StickyNoteData[] notes, UnityEditor.ShaderGraph.Internal.ShaderInput[] inputs) (at ./Library/PackageCache/com.unity.shadergraph@e6361834abfe/Editor/Data/Graphs/GraphData.cs:1201) UnityEditor.ShaderGraph.Drawing.MaterialGraphView.RemoveNodesInsideGroup (UnityEngine.UIElements.DropdownMenuAction action, UnityEditor.ShaderGraph.GroupData data) (at ./Library/PackageCache/com.unity.shadergraph@e6361834abfe/Editor/Drawing/Views/MaterialGraphView.cs:609) UnityEditor.ShaderGraph.Drawing.MaterialGraphView+<>c__DisplayClass49_2.<BuildContextualMenu>b__23 (UnityEngine.UIElements.DropdownMenuAction e) (at ./Library/PackageCache/com.unity.shadergraph@e6361834abfe/Editor/Drawing/Views/MaterialGraphView.cs:436) UnityEngine.UIElements.DropdownMenuAction.Execute () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/DropdownMenu.cs:224) UnityEditor.UIElements.EditorMenuExtensions+<>c__DisplayClass0_0.<PrepareMenu>b__0 () (at /Users/bokken/build/output/unity/unity/Editor/Mono/UIElements/EditorMenuExtensions.cs:36) UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUI/GenericMenu.cs:164) UnityEngine.StackTraceUtility:ExtractStringFromExceptionInternal(Object, String&, String&) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:50)
Issues you vote on will appear here