NodeFlow 2

Editing

Edit fields on the nodes, add instructions, and copy, paste and delete.

Editing

Every field on a node is Visual Script's own field, so values, value types, pickers and lists work exactly as in the Inspector. Titles update as you type. Every change goes through Unity's Undo.

Click an instruction's header to collapse it to its title, and click again to expand it, as in Visual Script. Dragging the header moves the node instead. NodeFlow 2 remembers which instructions you collapsed.

Adding instructions

  • Click the plus button on the right of a node's header to add the next instruction. The button under an If, a While or another instruction that holds instructions adds a nested instruction inside it.
  • Drag from any of these buttons and release where you want the new instruction. A line and an outline show where it goes, and stay while you pick the instruction. The outline snaps to the nodes around it (hold Ctrl/Cmd to place it freely).
  • To put an instruction between two connected ones, drag from the first one's output. Hovering it shows a ring and a plus on the line. The new node goes where you release it, and the next instruction stays where it was.
  • Right-click a node and choose Insert Instruction Before... / After..., Add Instruction Inside..., or on an Event Add Instruction at Start... / at End...

Visual Script's instruction picker opens right under the field or node, and above it when there isn't room below.

Events, Remember and Local Variable are added with the + button in the tool panel.

Drag and drop

Drag a GameObject, component or asset from the Hierarchy or Project window onto an object field in a node, for example a GameObject with an Event onto the Event field of a Run Event. The field takes the right component from the GameObject.

Right-click menus

OnMenu
InstructionCopy, Paste After, Duplicate, Replace..., Insert Instruction Before / After..., Add Instruction Inside..., Move Left, Move Right, Breakpoint, Disable, Help (Visual Script's documentation for that instruction), Delete
EventAdd Instruction at Start / End, Edit Note, Duplicate Event, Remove Event
Remember, Local VariableEdit Note (Local Variable), Remove Component
Run Event targetOpen it in NodeFlow 2
Any nodeGroup Selection, Remove from Group, Align, Layout
GroupEdit Group..., Select Nodes, Copy Group, Duplicate Group, Ungroup
Empty canvasPaste, Layout, Reset Layout

Deleting

Each instruction has a delete button on the right of its header, as in Visual Script's instruction list. Events, Remember and Local Variable have the same button, which removes the component. Delete (or Cmd + Backspace on Mac) deletes everything selected. Undo brings it back.

Copy, paste and duplicate

Ctrl/Cmd + C, Ctrl/Cmd + V and Ctrl/Cmd + D work on everything selected: instructions, and Events, Remember and Local Variable, which are copied and duplicated as new components with their instructions.

  • Ctrl/Cmd + V pastes instructions after the selected instruction.
  • With nothing selected, or with Paste on an empty spot, copied Events, Remember and Local Variable go where the mouse is, also on another GameObject.
  • If you selected an Event and only some of its instructions when you copied, the copy keeps just those instructions.
  • After Copy Group, Paste makes a new group around the pasted nodes with the same title, icon and color. Duplicate Group does the same in one step.

Play Mode

You can edit in Play Mode too, as in Visual Script's Inspector. Like any Play Mode change in Unity, changes to GameObjects in a scene are undone when Play Mode ends. Changes to prefab assets and LogicBlock 2 Blocks are kept.