Layout
NodeFlow 2 arranges every graph by itself, from the components alone. A new GameObject, a duplicate or a prefab instance always opens tidy. The Layout setting picks the direction: Left to Right (the default) or Top Down.
Moving nodes
Drag a node to put it where you want. Everything else stays where it is. Hold Shift while you drag to bring every node after it (its next instructions and nested instructions) along. A node you add by dragging from a port also stays where you drop it.
Only nodes you move are saved, in a hidden NodeFlow Layout component that NodeFlow 2 adds to the GameObject the first time. It:
- travels with the GameObject when you duplicate it, copy it to another scene or make a prefab,
- is hidden in the Inspector,
- is left out of builds, so a built scene is the same as one that never had NodeFlow 2.
Snapping and aligning
While you drag, a node snaps to the edges, centres and headers of the nodes around it, and to the usual gap next to them. A guide line shows what it lines up with. Hold Ctrl/Cmd to drag freely, or turn Snap to Nodes off in the settings.
With two or more nodes selected, right-click for Align (Left, Center, Right, Top, Headers, Bottom). It lines the nodes up along that edge and stacks them so they never overlap.
Arranging
Right-click and choose Layout > Left to Right or Layout > Top Down to tidy the selected nodes, or the whole graph from the empty canvas when fewer than two nodes are selected. Each selected chain starts where its first node is.
| Layout | Result |
|---|---|
| Left to Right | Each instruction to the right of the one before it, with the headers lined up so the lines run straight, and nested instructions below. This is how NodeFlow 2 arranges a new graph |
| Top Down | Each instruction under the one before it, with nested instructions to the right. The outputs move to the bottom of the nodes, so the chain reads top to bottom |
Instructions and Events added afterwards, in NodeFlow 2 or in the Inspector, are placed in line with what you arranged.
Reset Layout in the canvas right-click menu removes the saved positions and arranges the graph again. Layout, moving nodes and Reset Layout can all be undone.
Auto Arrange and Make Room
Two settings change how much NodeFlow 2 arranges for you. Each kind of graph has its own, so for example Visual Script graphs can be arranged by hand while LogicBlock 2 Blocks arrange themselves. See Settings.
- Auto Arrange places every node itself. Nodes can't be dragged, and Align, Layout and Reset Layout are hidden. When you drag a new node from a connection point, the nodes after it move aside while you drag. Your saved positions are kept and come back when you turn it off.
- Make Room moves the nodes below a node down when it grows, for example when you expand it or add to a list in it, and back up when it gets smaller.
Saved per computer
The size of each node, which instructions are collapsed, and where you last looked in each graph are kept in the project's Library folder. They never change your scenes or assets.