Adding Time Trial UI
Guide
Last updated
Guide
Last updated
To add in-game UI of relevant time trial data into your project, simply drag the TimeTrialUIManager prefab into your scene.
This will automatically display time trial UI for you, but the data will not be saved. This means that relaunching the game will reset the UI such as personal best lap time.
To add this, see the '' guide.
To use your own custom (and much better looking) UI, simply modify the component to use your own UI elements by changing its references. By default, the references UI objects from the TimeTrialUI prefab.
If you need more flexibility, you can also create a custom script to handle your time trial UI instead. This is slightly more complicated as the automatically references the component so that it works right away.
This is a small change and simply requires changing any references to the in the to make use of your own script instead.
In :
Time trial data can also be accessed by referencing the component on the script where you want to access that data.
See and sections for more information on how to do this.