Route
Move an object along a predefined path or route.
Introduction
Route drives an object through a list of waypoints one after another, like a patrol guard or a moving platform with several stops. You mark the points, set how long each leg takes, and choose whether the journey repeats. The Route component panel in the Uni editor Image The Route 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 Route. 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, Basic category, and click the Route block. The editor spawns a cube with Route already attached, ready to adjust. How to Access - the Route block in Asset Panel > Device > Basic
Properties
Is Active Bool Turns the component on or off. Target Points List The waypoints the object travels through, in order. Time Float How many seconds each leg from one point to the next takes. Mode Enum Once stops at the last point. Pingpong walks the route back and forth forever. Loop jumps back to the first point every time the end is reached and goes again. Auto Move Starts the route by itself the moment the game begins. Stay Time A pause at every waypoint before moving on to the next leg. Property Type Description Every property on the Route component.
Events
Route has no events.
Commands
Move Starts or resumes the journey from the current spot. None Pause Freezes the object wherever it is. Reset Teleports the object back to the first waypoint and stops. Return Sends the object back along the route and stops at the start. Command Description Parameter Commands that drive the component from a script.
Example
An object following a multi-turn path using Route. Route - simple example