# TimeTrialUIManager

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 ](/ttsystem/components-prefabs/timetrialuimanager.md)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.

<figure><img src="/files/SKU5LzPjOh8gLI0bTHjN" alt=""><figcaption></figcaption></figure>

To add it to your own projects, simply drag the [TimeTrialUIManager ](/ttsystem/components-prefabs/timetrialuimanager.md)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.&#x20;

{% hint style="info" %}
**NOTE:** [TimeTrialUIManager ](/ttsystem/components-prefabs/timetrialuimanager.md)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.
{% endhint %}

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](/ttsystem/guides/accessing-time-trial-data.md) guide to use it as a reference for your own implementations.

See the guide:[ Adding Time Trial UI](/ttsystem/guides/adding-time-trial-ui.md) for details on how to do either of these.

{% hint style="warning" %}
**CAUTION:** When creating your own implementation and using different class/method names from the example [TimeTrialUIManager](/ttsystem/components-prefabs/timetrialuimanager.md), make sure to also change the references and calls from the [LapTimeTrackingObject ](/ttsystem/components-prefabs/laptimetrackingobject.md)directly.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://llando.gitbook.io/ttsystem/components-prefabs/timetrialuimanager.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
