Race Track
Switches on the full racing system: gates to pass, countdowns, and on-screen time and progress stats for races and parkour.
Introduction
Race Track switches on the full racing system: gates to pass, countdowns to start, and on-screen stats for time and progress. It drives both proper races and competitive parkour runs. Keep in mind: the objects you place into Checkpoint and Finish Line are editor helpers. You can see them while building and in preview, but once the game is published and played, they turn invisible. If players should still spot a gate or the finish, place a separate decoration object there, such as an arch, a flag, or a gate model, and use the invisible helper as the logic marker. The Race Track component panel in the Uni editor Image The Race Track component panel in the Object editor. caption
How to Access
Select an object, open the Properties Panel, then press the Add Component button at the bottom and pick Race Track. The component stacks onto the object as a new accordion of properties. How to Access - Add Component in the Properties Panel
Another Way to Access
Shortcut: open the Asset Panel, go to the Device tab, Others category, and click the Start of the track block. It marks the starting line of a racing game with the track system ready to configure. How to Access - the Start of the track block in Asset Panel > Device > Others
Properties
ID Int The unique number identifying this circuit. There are two ways to read it: from this Race Track ID property, or from the Race Track ID player variable (a plain Number) that the race keeps while it runs. Checkpoint List The list of race gates along the course. The gate objects are visible in edit and preview mode only, and they disappear in play mode. In Sequence Bool Forces players to pass the checkpoints in order, no skipping. Countdown Turns the start into a proper countdown. Show Time Shows the running timer on screen. Show Progress Shows race progress on screen. Show Coin Shows collected coins on screen. Max Coin The coin target players race to collect. Property Type Description Every property on the Race Track component.
Events
Race Track has no events.
Commands
Race Track has no commands.
Example
Simple race track use Race Track - Simple Example