Read a class you did not write
Open a class you did not write in Graph view, follow its white and colored wires node by node, and confirm what you read in the right rail.
On this page
Someone else wrote a rule in your project. You can open it as a diagram and follow it node by node, and the same steps work for a tutorial script, a forum answer, or an asset you bought.
This page walks through the Platformer sample, a sample from the optional Round Trip Sample - Platformer package and that you import into a test project, so every step names a real class. There the rule is the goal door that opens after enough coins. The same steps apply to any project once its folder is indexed.
The task
Section titled “The task”You need to answer one practical question about a class you did not write. In the Platformer sample, the class is ScoreCounter and the question is: what happens when the coin count changes? The answer runs through a guard, a rule node, a HUD update, and a final branch.
When this applies
Section titled “When this applies”- You dropped in a script from a tutorial, a forum answer, or the Asset Store and want to see what it does.
- You inherited a Unity project and need to know what one behavior does before you change it.
- A component’s name makes sense, but what it does on each event does not yet.
What it looks like
Section titled “What it looks like”
Read the method
Add the source folder
Open the project that holds the scripts; for this walkthrough, the test project with the Platformer sample. In the Project window, select the folder that holds the scripts (in the sample,
Platformer/Runtimeinside the imported sample folder) and choose Assets > Round Trip > Add folder to Round Trip. The folder joins the project’s source include paths. Round Trip has already done this for the Platformer sample, so you only need the step for your own scripts.
3 stepsFull size ↗Open Graph view
Open Tools > Round Trip > Graph view. The Round Trip graphs window opens.
4 stepsFull size ↗Choose the class
Press Cmd/Ctrl+O to open the class picker. In the sample, choose the Runtime scope, then select ScoreCounter from the list. The left rail fills with its Lifecycle, Methods and Variables.
4 stepsFull size ↗Open the method
Click the method you want to read. In the sample, click OnCoinCountChanged under PUBLIC. Start at the magenta entry node on the left and follow its white wire into the first yellow BRANCH node.
Read the condition
Follow the red wire into the branch’s Condition back to where it starts. In the sample it comes from a red OR node fed by two red EQUALS nodes, each comparing a purple pill (_rules or _door) with null. Read it as “the rules or the door is missing”.
Follow the missing-input path
Follow the branch’s true output. It reaches a teal RefreshStatus node, with HudPresenter above its title and its isGoalUnlocked box unticked, then a magenta EXIT node. That route shows the goal as locked and stops early.
Follow the rule
Go back to the branch and follow false. It reaches a dark teal ShouldUnlock node with CoinUnlockRule above its title. Green wires bring the Coins pill into coinCount and the coinUnlockThreshold pill into threshold. Its red bool output fills the navy shouldUnlock SET node, which has
local boolunder its name: the method keeps the rule’s answer under that name.Follow the final branch
Keep following the white wire. A second RefreshStatus node takes an OR of the shouldUnlock value and the red IsUnlocked pill read from _door. The last yellow BRANCH node takes shouldUnlock as its Condition, and only its true output reaches the door’s
Unlocknode, whose Target comes from _door.Check the method and inspect a node
With the method selected in the left rail, look at the top of the right rail, then click any node on the canvas. The identity header switches to that node, with its own details below it. Click empty canvas and then the method’s row to bring the method back.
4 stepsFull size ↗

If you also read C#, double-click the method’s row or the method title in the toolbar to open its script at the method. Accessor rows offer View in Source in their right-click menu instead.
When it goes wrong
Section titled “When it goes wrong”When it goes wrong
| Symptom | Check | Fix |
|---|---|---|
| The class (ScoreCounter in the sample) does not appear in the class picker. | Open Project Settings > Round Trip and look under Include Paths. | Select the scripts folder (Platformer/Runtime in the sample) and use Add folder to Round Trip again. |
| The canvas shows a different method. | Look at the highlighted row in the left rail and the method title in the toolbar. | Click the method again (OnCoinCountChanged under ScoreCounter in the sample). |
| A value seems to appear from nowhere. | Follow its colored wire back to a pill or a node's output. | Pan left until the node that makes it is visible, then read the pin's label. |
| The canvas looks out of date after someone saved the script. | Look for a Unity compile or import still in progress. | Wait for Unity to settle, then use Reload to read the method again. |
- Build it visually, then Compile: change one input on a node and Compile it.
- Branch: read true and false routes without losing the main path.
- Navigate to source: open a script at the method you are reading.









