📪TimeTrialUIManager
Component and Prefab
Last updated
Component and Prefab
Last updated
This component provides an example solution for how to integrate your time trial data into UI for your projects. It is setup to work automatically with the provided TimeTrialUI prefab that implements the TimeTrialUIManager with UI elements automatically.
It provides an on-screen visualization of current lap time, personal best lap time as well as sector completion time and is made to work out of the box with the other Complete Time Trial System components.
To add it to your own projects, simply drag the TimeTrialUIManager prefab into your scene. From this you can customize the visuals of the UI prefab to the needs for your game.
If you do not want sector times to be displayed as UI, untick the bool on this component from the inspector.
NOTE: TimeTrialUIManager makes use of TextMeshPro for its text UI elements. This is a Unity package that may need to be imported into your project for it to work as intended.
If you need more flexibility or wish to integrate time trial data into your existing UI you can either modify this component or see the Accessing Time Trial Data guide to use it as a reference for your own implementations.
See the guide: Adding Time Trial UI for details on how to do either of these.
CAUTION: When creating your own implementation and using different class/method names from the example TimeTrialUIManager, make sure to also change the references and calls from the LapTimeTrackingObject directly.