📪LapTimeTrackingObject
Component
Last updated
Component
Last updated
This component handles the majority of time trial logic. There should be one LapTimeTrackingObject per player/object that you wish to track times for.
The LapTimeTrackingObject is responsible for collision detection of track points and uses triggers. Whenever a track point is passed on an object with this component attached, certain logic is run based on the index of the track point that was passed, as well as the track type.
The LapTimeTrackingEditor is an editor script that adds useful information about the state of the LapTimeTrackingObject to the inspector. This provides a runtime view of the time trial data to be used for debugging.
Each LapTimeTrackingObject also has several properties that you can use to directly access relevant time trial data. This is outlined in detail in the Accessing Time Trial Data section.