Run the sample
The Loom sample is a small Unity project that exercises every part of the bridge: splash screen with engine-pushed progress, main menu with multi-screen routing, counter with bidirectional state, and a HUD that fires events from C# to the UI on input.
Prerequisites
- Unity Hub with Unity 6 (
6000.x) installed. - Node 20+ on the host that runs the Editor.
Steps
-
Open the sample in Unity Hub. Point Unity Hub at the sample project directory.
-
Sync UI dependencies. In the Editor, run
Loom → Sync UI Dependencies. The menu installs the bundled npm packages into the sample’sUI/folder. -
Hit Play. You should see the four sample screens — splash, main menu, counter, HUD.
What to look at
The sample’s bridge is at Assets/Scripts/SampleBridge.cs. Its Solid UI is at
UI/src/. Both are minimal but exercise state pushes, action calls, and
event firing in both directions.
If anything fails, run Window → General → Loom Doctor and consult the
Doctor reference.