Graph Editor
RustEdit ProThe Terrain Graph window is where you build a graph. This page explains the window, how to add and wire nodes, and the keys that work in it. To keep a big graph tidy with portals, group boxes and node previews, see Organize a Graph.

The window
Open it with the Terrain Graph button on the tool bar, or with .
- The bar along the top:
- Open: opens a saved graph.
- Save: saves the graph to its file. A dot on the button means the graph has changes that are not saved yet.
- Save As: saves the graph to a new file.
- The file name of the open graph, or Untitled before you save it.
- Apply, on the right: writes the graph's result into the map. See Apply and Preview.
- Canvas: the grid where the nodes are.
- Sidebar, down the left: shown only while you edit a custom node. See Custom Nodes.
- Settings panel, down the right: the settings of the selected node. See Set values on a node.
A new graph starts with a Terrain Output node.
Move around the canvas
| To | Do this |
|---|---|
| Pan | Drag the empty canvas with Mouse Middle, or hold Alt and drag with Mouse Left. |
| Zoom | Scroll. The view zooms around the pointer, from 25% to 200%. |
| Go back to the start view | Right-click the empty canvas and pick Reset View. |
Add nodes
- Right-click the empty canvas.
- Pick Add Node, then a category, then a node. The node appears where you clicked.
The categories are listed in Nodes. Your saved custom nodes are under Custom. RustEdit reads the Custom Nodes folder again each time you open the menu, so new custom node files show at once.
To move a node, drag its title bar. Dragging the body of a node does not move it.
Search for a node
The right-click menu opens with a search box at the top, ready to type in.
- Right-click the empty canvas.
- Type part of the node's name, for example
erosion. The menu lists the nodes of every category that match, best first, with their category. The words can be in any order, and case does not matter. A match in the name counts most, then the category and the description. - Click a node, or move to it with Up and Down and press Enter. The node appears where you clicked. Esc closes the menu.
The menu that opens when you drop a wire on the canvas has the same search. It lists only the nodes that fit the wire.
Wire ports
Drag from one port to another to wire them. You can drag from an output to an input, or from an input to an output. While you drag, the ports that cannot take the wire are grayed out.
- An input takes one wire. A new wire into an input replaces the old one.
- An output can feed any number of inputs.
- A wire that would make a loop is refused.
What connects to what
The socket's shape says what a port carries:
| Socket | Carries | Connects to |
|---|---|---|
| Round | A map, such as a height map, a mask or the splat layers. | Any other round socket. |
| Square | One number, a switch or a choice. | A square socket of the same kind. A decimal number does not connect to a whole number. |
A map can have one layer (a height map or a mask) or several layers (such as the 8 splat layers). Each layer is called a channel. The color of a round socket says how many channels its map has.
Socket colors
| Color | Channels | Used for |
|---|---|---|
| Cyan | 1 | Height, masks, noise. Also ports that take any number of channels. |
| Pink | 4 | RGBA: four loose masks on one wire. |
| Violet | 5 | Biome. |
| Orange | 8 | Splat. |
| Lime | 31 | Topology. |
Maps with different numbers of channels still connect:
- A one-channel map wired into an input with more channels is used for every channel.
- A map with more channels wired into a one-channel input gives one channel. The input then shows a channel picker, where you choose which layer to read. Auto lets the graph choose.
Drop a wire on the canvas
Drag a wire from a port and let go on the empty canvas. A menu lists only the nodes that have a port that fits. Pick one, and RustEdit adds it where you let go and wires it up. If no node fits, the menu says "No node fits this wire".

Drop a wire on a node
Drag a wire from a port and let go on the body of another node. You do not have to hit the socket:
- If only one port of the node fits, the wire goes into it.
- If several ports fit, a menu lists them. The ports on the node come first. Below a line are the settings that are only in the settings panel. Pick one, and the wire goes into it.
You can also let go on a setting in the settings panel. The wire goes into that setting.
A setting with a wire always shows on the node. When you remove the wire, the setting goes back into the panel, unless it is pinned.
Remove a wire
- Drag from the socket of a wired input. The wire comes off with the pointer. Let go on another input to move it there, or away from the ports to remove it. On the empty canvas, the drop-wire menu opens too: pick a node to wire it, or close the menu.
- Or right-click a port and pick Disconnect. On an output with several wires, pick Disconnect All.
Removing or moving a wire this way is one undo step.
To send a value across the graph without a long wire, use a portal. See Portals.
Set values on a node
Click a node to see its settings in the Settings panel, down the right of the window. The panel shows the node's name, what it does, and one row for each setting. A node with many settings, such as Canyon, stays small on the canvas: its settings are in the panel, not on the node.
In a node with many settings, the settings are in groups, each under a heading, such as Shape, Detail or Placement. Click a heading to fold its group away. Click it again to open it. RustEdit remembers which groups you folded for each kind of node until you close the app.
To put all of a node's settings back to their defaults, click Reset to Defaults (the undo arrow at the right of the panel's title). Press Ctrl+Z to get your values back.
The node itself shows its maps, its outputs, and the settings that have a wire. The Float, Int, Bool and Constant nodes also show their value.
Show a setting on the node
To wire a setting, it must have a socket on the node. Each row in the panel has a pin on its left:
- Click the pin to show the setting on the node as a port. The pin turns bright.
- Click it again to keep the setting in the panel only.
- Or right-click the setting's socket on the node and pick Hide Port.
A setting with a wire has a link icon in place of the pin. Showing and hiding a setting is an undo step, and the graph file keeps it.
You can also drop a wire on the node without pinning first. See Drop a wire on a node.
Controls
An input with nothing wired in has a control beside it, so you can set its value:
| Control | Use |
|---|---|
| Number field | Type a number. You can also type a simple calculation, such as 2*512. |
| Slider | Drag it, or type in its field. A drag is one undo step. |
| Switch | Turns the setting on or off. |
| Drop-down button | Click it and pick a choice from the menu. |
| List with check boxes | For settings that take several choices, such as topology layers. The button says Nothing, Everything, the one name, or Mixed. |
When you wire a node into an input, its control is grayed out: the wire gives the value.
Some inputs show only when the node uses them, on the node and in the panel. For example, Math hides B when its Operation is Abs, Sin or Cos.
Values that live on the node itself, such as a Curve node's curve or a Texture node's image, are in the panel only. They cannot take a wire.
Select nodes
| To | Do this |
|---|---|
| Select one node | Click it. |
| Add or remove a node from the selection | Ctrl+Mouse Left on it. |
| Select with a box | Drag on the empty canvas with Mouse Left. Hold Ctrl to add to the selection. |
| Select all | Ctrl+A. |
| Clear the selection | Click the empty canvas. |
Drag the title bar of a selected node to move the whole selection.
The node menu
Right-click a node to see its menu:
| Item | What it does |
|---|---|
| Cut, Copy | Puts the selected nodes on the graph's clipboard, with the wires between them and the group boxes they fill. Paste them with Paste in the canvas menu, or with Ctrl+V. |
| Duplicate | Adds copies of the selected nodes, with the wires between them, a little below and to the right. |
| Group Selection | Draws a group box around the selected nodes. See Group boxes. |
| Create Custom Node | Turns the selected nodes into a custom node. See Custom Nodes. |
| Edit Custom Node, Make Unique, Delete Custom Node | Only on custom nodes. See Custom Nodes. |
| Preview | Shows or hides the node's preview picture. See Node previews. |
| Delete | Deletes the node. With several nodes selected, Delete Selected deletes all of them. |
A paste puts the nodes under the pointer, or in the middle of the view when the pointer is not over the graph. The pasted nodes are selected. A paste is one undo step.
The Terrain Output node cannot be deleted or copied: it is the only way out of the graph, and every graph has one. A graph file saved without one gets one when you open it. An old graph file can hold two: only the first one added is used, and you can delete the other.
Save and open graphs
A graph is saved as a .terraingraph file. It holds the nodes, the wires, the values you typed, the group boxes and where everything is on the canvas.
- Save writes to the graph's file. The first time, it asks where to save.
- Save As always asks for a new file.
- Open loads a graph in place of the one in the window. If the graph has changes that are not saved, RustEdit first asks: "Are you sure you want to open another graph? Any unsaved changes will be lost".
- Ctrl+S saves the graph while the window is shown. While you edit a custom node, it saves the custom node instead.
A graph file does not hold the custom nodes it uses. It only points at them. To give a graph to someone, also give them the custom nodes it uses. See Share custom nodes.
When you quit RustEdit and the graph has changes that are not saved, RustEdit asks first:
- Save saves the graph, then quits. If you cancel the file dialog, RustEdit stays open.
- Don't Save quits without saving the graph.
- Cancel stays in RustEdit.
Ctrl+S in the graph window saves the graph, not the map. Save the map with Ctrl+Shift+S or .
Undo
The graph has its own undo history, apart from the map's.
- Ctrl+Z undoes the last graph edit, and Ctrl+Y or Ctrl+Shift+Z redoes it, while the pointer is over the graph. With the pointer anywhere else, Ctrl+Z and Ctrl+Y undo and redo map edits as usual.
- The history keeps the last 128 steps.
- Adding, deleting, moving and wiring nodes, typed values, showing or hiding a setting on a node, and group box changes are undo steps.
- A paste, a cut and a duplicate are one undo step each, however many nodes they hold.
- The Graph Seed node's number, the image picked in a Texture node and renaming a portal are undo steps too.
- A change to the Curve node's curve is one undo step when you close the curve editor.
- Each custom node has its own history. Stepping into a custom node and back out keeps the outer graph's history.
- Apply is an undo step in the map's history, not the graph's. See Apply and Preview.
Keys in the graph
Most keys work only while the pointer is over the graph, and none work while you type in a field.
| Keys | What they do |
|---|---|
| Ctrl+Z | Undo a graph edit. |
| Ctrl+Y, Ctrl+Shift+Z | Redo a graph edit. |
| Delete | Delete the selected nodes. |
| Ctrl+C | Copy the selected nodes, with the wires between them and their group boxes. |
| Ctrl+X | Cut the selected nodes. |
| Ctrl+V | Paste the copied nodes under the pointer. |
| Ctrl+D | Duplicate the selected nodes. |
| Ctrl+A | Select every node. |
| Ctrl+G | Draw a group box around the selected nodes. |
| Ctrl+S | Save the graph, or the custom node you are editing. Works anywhere while the window is shown. |
| Ctrl+Mouse Left | Add a node to the selection, or take it out. |
| Mouse Left drag on the canvas | Select with a box. Add Ctrl to add to the selection. |
| Mouse Middle drag, Alt+Mouse Left drag | Pan. |
| Scroll | Zoom. |
| Double-click a custom node | Open it. |
| Double-click a group title or a sending pill | Rename it. |