LogicBlock 2
When LogicBlock 2 is installed, NodeFlow 2 also opens Instruction Blocks, Condition Blocks and LogicBlocks. Nothing needs to be set up: the LogicBlock 2 support turns on by itself.
Opening a Block
- Pick it under LogicBlock 2 in the Open Graph list.
- Double-click it in the Project window.
- Click Open in NodeFlow 2 in its Inspector header.
- Right-click it, or open its context menu, and choose Open in NodeFlow 2.
What a Block looks like
| Asset | Graph |
|---|---|
| Instruction Block | The Block node (note and parameters) followed by its instructions |
| Condition Block | One node with the note, parameters and conditions |
| LogicBlock | The Block node (note and parameters) on the left, and one node per list. Instructions lists are followed by their instructions. Conditions lists show their conditions |
Run Block links
A Run Block instruction draws a dashed line to the list or Block it runs. If it's in another asset, the line ends in a small node with the Block's name; double-click it, or right-click it, to open that Block. This also works in GameObject graphs.
Lists
Use the + button in the tool panel to add an Instructions or Conditions list. Right-click a list to remove it, or use the delete button on its header. The Block node itself has no delete button.
Play Mode
The Block node and its lists turn green while they run. LogicBlock 2 runs a copy of the instructions for every call, so the instructions inside a Block don't light up one by one.
Moved nodes in a Block are saved in a hidden part of the Block's asset file, which is also left out of builds.