Examples
Complete scripts from the StageTime test playground. The code on these pages is read straight from the playground's script files, so it always matches what is built and tested.
| Example | Shows |
|---|---|
| Rotating cube | Interact, a synced bool, ownership |
| Counter | UI buttons, synced int, OnDeserialization |
| Tick-synced cube | Shared clock, motion with no per-frame sync |
| Scoreboard | Calling another script, synced arrays, GetProgramVariable |
| Pickup colour | ST Pickup events and the use button |
| Seat board | ST Seat events |
| Teleport pad | Player triggers, TeleportTo |
| Network events | SendCustomNetworkEvent, delayed events |
| Player board | Player list, join and leave events |
| Unity API demo | A tour of the allowed Unity API |
| Video controls | ST Video Player: synced playback, sync modes, video events |
| Drivable car | Player input, a seat with Take Controls, ST Object Sync physics |
| Spin the bottle | Random, an animation everyone sees in step from the room clock |
| Video seek bar | A Slider that follows a video and seeks it |
| Input tester | StageTimeInput, GetButtonValue and every input event |
| UI controls | Synced Toggle and Slider, SetValueWithoutNotify |
| Reset objects | Arrays of components, ST Object Sync Respawn |
| Card deck | STPickup.HandOver, synced arrays, shuffling, one atlas for 52 cards |
| Catalogue browser | ST Data Table: paging, sorting and searching 40,000 rows |
| Request queue | ST Queue: requests, removing entries, host-only clear |
| Queue video player | Playing an ST Queue on an ST Video Player, one turn at a time |
| Image gallery | ST Image Loader, a synced picture number, fitting the frame to the picture |