> For the complete documentation index, see [llms.txt](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/api/available-api/ui-api.md).

# UI API

{% hint style="info" %}
**Note:** Ensure that AI who use this API have a [UI Component](/emerald-ai-wiki/emerald-components-optional/ui-component.md) on it.
{% endhint %}

## Updates the AI's Health Bar color

Updates the AI's Health Bar color.

```csharp
EmeraldAPI.UI.UpdateUIHealthBarColor(EmeraldSystem EmeraldComponent, Color NewColor)
```

## Update UI Health Bar Background Color

Updates the AI's Health Bar Background color.

```csharp
EmeraldAPI.UI.UpdateUIHealthBarBackgroundColor(EmeraldSystem EmeraldComponent, Color NewColor)
```

## Update UI Name Color

Updates the AI's Name color.

```csharp
EmeraldAPI.UI.UpdateUINameColor(EmeraldSystem EmeraldComponent, Color NewColor)
```

## Update UI Name Text

Updates the AI's Name text.

```csharp
EmeraldAPI.UI.UpdateUINameText(EmeraldSystem EmeraldComponent, string NewName)
```
