The NPC Route component allows NPC to move between multiple target transforms.
| Property | Type | Description |
|---|---|---|
| Is Active | Bool | Whether the component is enabled. When enabled, the component will start from the initial Transform and move towards the target Transform in order |
| Auto Move | Bool | Whether the movement starts automatically when Is Active becomes True |
| Time | Float | The time it takes for an object to move from one target to the next |
| Mode | Enum | Sports mode, optional Once, Pingpong, Loop. |
| • Once: stop after reaching the last target | ||
| • Pingpong: After reaching the last target, return the same way and repeat the movement towards the target | ||
| • Loop: After reaching the last target, teleport to the starting point and repeat the movement towards the finish line | ||
| Stay Time | Float | The time when an object is stationary after reaching the starting point or target |
| Curve Path | Bool | Whether to use curve path |
| Input Channel | Channel | The channel that receives the signal. When it is not empty, the object defaults to not moving. When the signal of the selected channel changes from 0 to 1, the object starts to move. |
This property is no longer maintained. We recommend using script functionality to control component behavior. | | When Off | Enum | Behavior when channel signal changes from 1 to 0, optional Pause, Reset, Return. • Pause: Stop in place • Reset: Teleport back to the starting point • Return: Moving towards the starting point
This property is no longer maintained. We recommend using script functionality to control component behavior. | | Route Points | List | Target transform list |
None.
None.