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 a C# feature.

Browse the reference instead

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

v1.0.0
Menu

Navigate to source

Move between a diagram and its C# script using the window's source buttons, the back and forward buttons, and Reload.

The canvas shows the shape of a method; the script holds its exact text. A few controls in the window take you from one to the other and back without losing your place.

The diagram and the script are two views of the same method. You build and follow behavior on the canvas, and you may still want the script now and then: to show a programmer the line, to check a part the canvas draws as a gray placeholder node, or to make an edit in your code editor. Round Trip keeps the two connected. One click opens the method, the class or a single node’s line in your code editor. The back and forward buttons walk through the methods you opened, and Reload redraws the canvas after the script changed outside Unity.

Jump to the script when a node’s tooltip is not enough, when a teammate asks which line a node is, or when a gray placeholder node appears. Use back and forward when your work crosses several methods, such as following a pickup from the player into the score counter and the HUD. Use Reload after you, a teammate or an assistant edited the open class’s script outside Unity.

The method title in the toolbar, after the ƒ glyph, carries the tooltip Double-click to open source. The back and forward arrows sit beside Compile at the left of the toolbar. On the right, the Reload button reads Re-run the Round Trip parse, adapter, and render pipeline for the active method. and the Source button reads Open the active class source.. The class chip at the left of the toolbar offers Open source on its right-click menu, and a node that came from the script offers Go to source on its own.

Jump between the diagram and the script

  1. Open a method

    Click a method row in the left rail. Its diagram opens on the canvas and its name appears in the toolbar after the ƒ glyph. Double-click that title. Your code editor opens the class’s script at the method’s line.

    CollectCoin selected in the left rail's Methods list and the method title in the toolbar, both highlighted; the toolbar reads the ƒ glyph followed by CollectCoin, with the back and forward arrows beside it. An arrow points at the title.
  2. Switch methods or jump from a property

    Return to Round Trip graphs and double-click a method row in the left rail instead. The editor opens that method at its line. Right-click a property’s get or set row and choose View in source for the same jump.

    The top left of the Round Trip graphs window showing PlayerController's Methods list. The IsRespawning row, a property with a get chip, has its right-click menu open with one entry, View in source, highlighted with an arrow.
  3. Open the whole class

    Click Source on the right of the toolbar. The editor opens the whole class’s script at the class’s declaration, so you can read the method beside its neighbors.

    The right of the toolbar: the Align and Auto layout buttons, then Changes, Reload, Source, Info, the search field and Settings, with the Source button highlighted and an arrow pointing at it.
  4. Jump from a node

    Right-click a node on the canvas and choose Go to source. The editor opens at that node’s own line.

    The whole Round Trip graphs window on a small Door method. The header of the BRANCH node is highlighted and its right-click menu is open beside it, with Go to source at the top of the menu highlighted with an arrow.
  5. Walk back and forward

    Click a second method in the left rail, then a third. Click the back arrow in the toolbar: the canvas returns to the second method. Click back again for the first, then the forward arrow to go to the second again. The highlighted row in the left rail follows.

    The whole Round Trip graphs window with RespawnAtStart open after going back twice and forward once. The back and forward buttons in the toolbar are highlighted with an arrow pointing at them, and so is the RespawnAtStart row in the left rail.
  6. Reload after an outside edit

    Change the open class’s script in your code editor and save it. Return to Round Trip graphs and click Reload. The canvas redraws the method from the saved script, and your change appears as nodes.

    The right of the toolbar with the Reload button highlighted and an arrow pointing at it, between Changes and Source.
    A new statement node, fed by a 'Collected a coin!' string literal on its message pin, now sits on the white exec path between AddCoins and RefreshCoins/PlayCoin, where no such node existed before.

Moving around and Reload write nothing. Reload keeps every saved line of the script; it reads the file again and redraws the canvas from it. If you also work in C#, double-clicking the title of a method with an early stop at the top lands on a declaration such as:

When it goes wrong

SymptomCheckFix
View in source is missing on a group row.Look for a caret: the row groups several versions of a method, or a property's get and set.Expand the group and right-click the get, set or method row inside it.
Go to source is dimmed on a node.Check whether you placed the node since the last Compile.Press Compile, then right-click the node again.
Reload is dimmed.Look for a method title in the toolbar.Click a method in the left rail, then use Reload.
Back does not return to a property view.Property get and set rows are not recorded in the back and forward history.Reopen the row from its property group in the left rail.
Full-size image