# 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: 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://sickscoregames.gitbook.io/hud-navigation-system/hud-navigation-element/text-adapters.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.
