> 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

Used by text references to update text on UI components

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:\
*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);
    }
}
```
