There may be other triggers for this but it appears to be repeatable on my setup. I never made the connection, only noticing nodes randomly dropping out of their groups much later when trying to rearrange my graphs. That’s likely because undoing has always been a risk.
I’m using Unity 2022.3.1f1 and URP. Unsure whether this has been tackled on more updated versions.
To repeat:
-
Create a new URP shadergraph.
-
Toss a dozen or so Add nodes onto the graph and group them.
-
Move one of the nodes several times, creating an undo history.
-
Hit undo one or more times.
-
Move the group itself and some nodes will be left behind.
I notice that the group will only drop nodes the first time this happens, and will retain its other nodes after subsequent undo attempts. I can trigger the drop when interacting with nodes outside of the group as well, which is how this usually happens. I’ll be working on one side of the graph, and nodes will be dropped from groups everywhere else. Seems like certain group actions related to the rendering of the box and moving of its contents are clipped relative to the full list of tracked nodes or something.