Skip to content
Bit Quirky Round Trip
Visual Scripting

Search documentation

All topics and APIs

Close returns focus to Search.

What are you looking for?

Try a common topic or enter a complete API identifier.

Browse the reference instead

Esc closes · Tab reaches results · Enter opens the focused link

v0.89.0
Menu

Preview and Compile

Review an in-memory graph draft, undo safely, then write and re-parse the source.

The graph can change before the file does. That gap is where you inspect the draft, undo an experiment, or decide the source edit is ready.

Saving every drag or field change immediately would make exploration risky. It would also hide the important boundary between graph configuration and C# behavior.

Use the preview state whenever a graph, declaration, default, guard, signature, or member edit is pending. The banner says Previewing your changes. and the toolbar’s Compile becomes active.

Compile lives in the top toolbar only. The Previewing your changes. panel pinned to the top of the right rail counts the pending edits and offers Undo. Guard, property access, and overload default edits are written by the same Compile. The toolbar tooltip reads compile and save when work is pending, nothing to save when the graph matches source, and compiling… while the write is running. A pending change that still needs attention, such as a guard that is not ready, turns Compile off with Fix the pending change that needs attention before compiling.

The draft banner and Compile control
Figure 1. The canvas marks a pending draft before source is changed.
  1. Make one supported graph or declaration change.
  2. Look for Previewing your changes.. Inspect the changed node, wire, rail field, or source-shaped summary.
  3. Use Undo before Compile to reverse the draft. Redo restores it while the source baseline is still current.
  4. If the draft is correct, press Compile in the toolbar. Cmd/Ctrl+S runs the same pending-change flush.
  5. Round Trip plans the smallest safe source mutation. It rechecks the file timestamp before writing.
  6. The updated file is written atomically, imported by Unity, indexed, and parsed again.
  7. Wait for the graph to return to its source-backed state. The preview banner clears when no pending work remains.
  8. If Compile refuses, read the named reason. The file stays unchanged and the draft stays available for repair or discard.

Source-backed edits enter the .cs file. Layout, viewport, zoom, reroute knots, graph notes, and collapsed sections enter graph configuration instead. Round Trip does not insert canvas coordinates into C#.

A source write is followed by a re-parse, so the graph returns to the C# Unity will compile.

When it goes wrong

SymptomCheckFix
Compile says nothing to saveLook for the preview banner and any changed rail state.Make a source-backed draft; layout-only changes save as graph configuration.
Compile remains busyCheck whether Unity is compiling or importing.Wait for Unity to become ready; the graph retries after editor work settles.
A refusal appearsRead the exact construct or declaration named in the message.Repair the draft, discard it, or make that edit in C#.
Full-size image