> For the complete documentation index, see [llms.txt](https://sickscoregames.gitbook.io/hud-navigation-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sickscoregames.gitbook.io/hud-navigation-system/hud-navigation-element/text-adapters.md).

# Text Adapters

Text adapters work behind the scenes and typically require no user interaction. It is only relevant for advanced scenarios or when using unsupported custom text components.

{% hint style="info" %}
Check out the default text adapter scripts:\
\&#xNAN;*Sickscore Games > HUD Navigation System > Scripts > Utilities > Adapters.*
{% endhint %}

### Create Your Own Text Adapter

Need support for a custom text component? No problem.

Creating your own text adapter is straightforward:

* Implement the `IHNSTextAdapter` interface
* Use the `SetText` method to update your custom text component

This allows you to seamlessly integrate any text solution with the HNS system.

{% hint style="success" %}
If you’re using a UI text component that isn’t supported yet, please let us know! We’d be glad to include a suitable text adapter in a future update for everyone to use.
{% endhint %}

```csharp
// HNSTextAdapter_ThirdParty.cs

using SickscoreGames.HUDNavigationSystem;
using UnityEngine;

public class HNSTextAdapter_ThirdParty : MonoBehaviour, IHNSTextAdapter
{
    public void SetText(string text)
    {
        Debug.Log(text);
    }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://sickscoregames.gitbook.io/hud-navigation-system/hud-navigation-element/text-adapters.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
