Navigate to source
Move between a diagram and its C# script using the window's source buttons, the back and forward buttons, and Reload.
On this page
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.
What it does
Section titled “What it does”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.
When to use it
Section titled “When to use it”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.
What it looks like
Section titled “What it looks like”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.
How to use it
Section titled “How to use it”Jump between the diagram and the script
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.
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.
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.
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.
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.
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.
What it writes
Section titled “What it writes”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
Section titled “When it goes wrong”When it goes wrong
| Symptom | Check | Fix |
|---|---|---|
| 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. |
- Nodes, pins, and wires: read and build the visual script you returned to.
- Edits from outside: how a saved script returns to the canvas.
- When it refuses: handle a gray placeholder node without guessing.





