Groups
A group is a tinted panel behind a set of nodes, with a title, an icon and a color, like a note.
| To | Do this |
|---|---|
| Make a group | Select nodes and press Ctrl/Cmd + G, or right-click and choose Group Selection |
| Move it | Drag the group's header. Every node in it moves along |
| Select its nodes | Click the header. Shift or Ctrl/Cmd click adds them to the selection |
| Change its look | Double-click the header, or right-click the group and choose Edit Group..., to change its title, icon and color in Visual Script's note window |
| Add a node | Drag a node that isn't in a group onto the group. The group lights up while you're over it |
| Take nodes out | Ctrl/Cmd + Shift + G or Remove from Group |
| Remove the group | Ungroup on the header. The nodes stay |
A new instruction added from a node in a group goes into that group. While you drag from a port, that group lights up and stretches to take in the outline. Drop the outline inside another group to put it there instead.
The group grows and shrinks with its nodes as you move or expand them.
Groups are saved with the moved nodes in the hidden NodeFlow Layout component (or in the Block's asset), so they travel with the GameObject and are left out of builds. Every group change can be undone.