Add and connect nodes
What this page is for
Section titled “What this page is for”A scheme is nodes joined by links. This lesson covers how to make a node, how to join two nodes, and how to take nodes and links away.
When you come here
Section titled “When you come here”- You have an empty canvas and want the first node.
- You want a new node that is already linked to the one you are working on.
- A link goes to the wrong place.
- You want to remove a node, or all links of one node.
What you see
Section titled “What you see”When you add a node, the Studio opens a search window titled Add Node. Its first level lists the groups of nodes. A group with an arrow opens a deeper list.
- Flow(group)
- Time(group)
- Dialogue(group)
- Audio(group)
- Actors(group)
- Clans & Roles(group)
- AI(group)
- Players(group)
- Variables(group)
- Conditions(group)
- Events(group)
- Code(group)
- Notes(group)
A node card has a connector for each link. An input takes links in. An output sends them out. A node has at most one input and zero or more outputs, each with a name, for example Success and Failure on Chance. A node that starts a flow, like Start, has no input.
An input takes any number of links, and an output can lead to several nodes. Where an output has two or more links, each link carries a number, 1, 2, 3. The links of one output run from the top down, and the numbers show that order.
Do it, step by step
Section titled “Do it, step by step”Add a node with Space
Section titled “Add a node with Space”Click the canvas so it has the focus, then press SpaceSpace with the pointer where you want the node. The Add Node window opens at the pointer. Pick a node (see the next step). The new node appears where the window opened, and it is selected, so the Element Inspector shows its settings.
On a scheme with no node you added, the canvas reminds you: Press Space or right-click to add a node.
To undo, choose Edit > Undo in Unity. The step is named Add and the node’s title, for example Add Chance.
Add a node from the menu
Section titled “Add a node from the menu”Right-click an empty part of the canvas and choose Add Node. It does what Space does, at the place you clicked.
To undo, choose Edit > Undo.
Choose a node in the search
Section titled “Choose a node in the search”In the Add Node window, click a group to open it. The group’s name becomes the title line, and a back arrow leads out. Click a node to make it. Typing searches the list.
- Chance
- Random Branch
- Run Together
- Run In Background
Inside a group the entries follow a fixed order, then their names. Sub-groups come after the entries of their parent group.
Some entries are a node with one setting already changed. They read as the name of the entry, a dot, and the node’s title, for example Wait Random · Wait.
Every scheme gets a Start and an End node when it is made. They are never in the list.
The window is titled Add a Change when you add a change under an output’s folded lines. It then lists only the nodes that can be shown as a line. See Folding.
To undo, choose Edit > Undo after you pick. To cancel before you pick, close the window: it is Unity’s own search window, and Escape is its usual way out (to confirm in Unity).
Add a linked node by dragging a link into empty space
Section titled “Add a linked node by dragging a link into empty space”Drag from an output and let go on an empty part of the canvas. The Add Node window opens there. Pick a node, and it is made at that place and linked to the output you dragged from.
Step 1 of 4. A wire dragged from an output is dropped on empty canvas.
- A wire from Check Opinion, output True, is being dragged to an empty spot.
Step 2 of 4. The Add Node search opens where you dropped it.
- Flow(group)
- Time(group)
- Dialogue(group)
- Audio(group)
- Actors(group)
- Clans & Roles(group)
- AI(group)
- Players(group)
- Variables(group)
- Conditions(group)
- Events(group)
- Code(group)
- Notes(group)
Step 3 of 4. You pick a node: here Succeed Scheme, from the Flow group.
- Flow(group)
- Time(group)
- Dialogue(group)
- Audio(group)
- Actors(group)
- Clans & Roles(group)
- AI(group)
- Players(group)
- Variables(group)
- Conditions(group)
- Events(group)
- Code(group)
- Notes(group)
Step 4 of 4, Fold new changes on. The change is a line under the output.
Step 4 of 4, Fold new changes off. The new node is a card, already linked.
- Check Opinion, output True, goes to Succeed Scheme.
This is the quickest way to build a flow, one node after the other. With Fold new changes on, a node that is a change (for example one that changes a variable) does not become a card. It becomes a line under the output. See Folding.
You can also drag from an input into empty space. The new node is then linked so that its first output leads into that input.
If the dragged output is the first one of a node that stores what it found in a variable, the new node starts with that variable already in its first actor, clan or family field, so you do not have to pick it.
To undo, choose Edit > Undo.
Link an output to an input
Section titled “Link an output to an input”Drag from an output of one node to the input of another node, and let go. While you drag, the inputs that cannot take this link are dimmed. The link is drawn when you let go.
A link is refused when:
- the target has no input. Nodes without an input are Start, End, Jump Target, Comment, On Game Loaded, On Accomplice Joined, On Accomplice Left, When a Requirement Breaks and On Date;
- the target is the node itself, unless changes are folded under that output (see Folding);
- the same two nodes are already linked from that output.
The links of one output run from the top down: the node placed higher on the canvas runs first. The numbers 1, 2, 3 on the links show that order. To change it, move a node up or down.
To undo, choose Edit > Undo. The step is named Connect Nodes.
Move the end of a link
Section titled “Move the end of a link”Drag the end of an existing link to another input. The old link is removed and a new one is made.
To undo, choose Edit > Undo. It may take two steps, Connect Nodes and Disconnect Nodes.
Remove a link
Section titled “Remove a link”Right-click the link and choose Delete. You can also select the link and use Unity’s Delete key (a Graph View default, to confirm in Unity; on a Mac the key may be named differently).
To undo, choose Edit > Undo. The step is named Disconnect Nodes.
Remove all links of a node
Section titled “Remove all links of a node”Right-click the node and choose Disconnect All. Every link into or out of the node is removed, and the node stays.
To undo, choose Edit > Undo.
Delete nodes
Section titled “Delete nodes”Selecting nodes and the Delete key are Unity’s own Graph View controls; the Studio does not change them.
Select one or more nodes and right-click, then choose Delete. Unity’s Delete key does the same (a Graph View default, to confirm in Unity). The links that led to the deleted nodes are removed from the other nodes. Start and End cannot be deleted.
To undo, choose Edit > Undo. The step is named Delete Node or Delete Nodes.
Go to the Jump Target
Section titled “Go to the Jump Target”A Jump To node continues the flow at a Jump Target. To see where, right-click the Jump To node and choose Go to Jump Target, or double-click it. The Studio selects the target and brings it into view. The entry is grey until you have picked a target and the target still exists.
The other way works too. Right-click a Jump Target and choose Select Jump To Nodes; it is grey when no Jump To points at the target. When several nodes jump to it, the entry shows how many, for example Select Jump To Nodes (2). Double-click a Jump Target to go to the first Jump To that points at it, from the top down. A Jump Target shows its name in its title, for example Jump Target · Ambush.
Back in the toolbar returns you to where you were.
How it connects
Section titled “How it connects”You come from Move around the canvas. The next lesson is The Element Inspector, where you set up the node you made.
Changes that become lines under an output are taught in Folding. To copy nodes between schemes, see Copy, paste and undo. Node groups are in Node groups. The counter for nodes that are wrong or not linked is in Problems.
Settings on this page
Section titled “Settings on this page”| Setting | What it does | Default | When to change it |
|---|---|---|---|
| Fold changes | Shows folded changes as lines under their cards. | On | See Folding. |
| Fold new changes | A change made by dragging a link into empty space becomes a line, not a card. | On | See Folding. |
Both are rows of the Studio’s Settings page.
Mistakes and messages
Section titled “Mistakes and messages”Space does nothing. The canvas has no focus: click an empty part of it first. Or the scheme cannot be edited: Play mode, or a test run that plays the scheme.
Add Node is grey. The scheme cannot be edited now. Stop Play mode or the test run.
Start or End is not in the search. Every scheme gets them when it is made, so the search never offers them.
The link snaps back. See the list above.
A new change does not become a line. Fold new changes is off, or the node cannot be shown as a line. Cards stay cards.
| Message | Where it shows | What to do |
|---|---|---|
| Stop the run to edit. | The run bar, when you edit a scheme that a test run plays | Stop the run. See Test run. |
| Play mode: live view, editing is off | The bar under the toolbar | Stop Play mode to edit. |
| Not connected: a change cannot lead straight into itself. | A notice in the Studio window for a few seconds, and in the Console | Drop the link on another node. |
| Not connected: this change ends the flow, so nothing comes after it. | The same notice | Link from a change that does not end the flow. |
| Added as a new step: a wire from a Sequencer’s Steps is a step. | The same notice | Nothing. The node is a new step. |
| Choose the Jump Target to continue from. | The Element Inspector of a Jump To with no target | Pick a Jump Target. |
| Jump Target not found | The same place | The target was deleted. Pick another. |
| The chosen node is not a Jump Target. | The same place | Pick a Jump Target. |
| The Jump Target belongs to another graph. | The same place | Pick a Jump Target of this scheme. |
| Give the Jump Target a name so Jump To nodes can tell it apart. | The Element Inspector of a Jump Target | Type a name. |