> For the complete documentation index, see [llms.txt](https://fast-studios.gitbook.io/press-e/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fast-studios.gitbook.io/press-e/manual/components/ui-prefab.md).

# UI Prefab

The **UI Prefab** contains two tabs: **Enabled Tab** and **Disabled Tab**. These tabs help you preview and organize what exists in that specific prefab.\
For example, if the UI Prefab you are creating includes a **Background**, you can enable the background on the **Disabled Tab** and it will be carried over to the **Enabled Tab**.\
In this UI Prefab you can reference the following objects:

### Background

Reference the prefab **Image** that is responsible for the **Background**. Used by [**Details**](#details) to enable/disable the background.

### Name Text

Reference the prefab **Text** that will display the object’s name in the hierarchy. Used by **prompts**, for example.

### Image

Reference the prefab **Image** that will be shown on screen. This image is generally used by **While Interacting** (specifically by [**Drag**](/press-e/manual/components/interactable/drag.md) and [**Grab**](/press-e/manual/components/interactable/grab.md)).

### Interaction Text

Reference the prefab **Text** that will display the interaction text. Used by **prompts**.

### Slider

Reference the prefab **Slider**. Used by [**Hold**](/press-e/manual/components/interactable/hold.md).

### Details

Reference the **Text** and **Image** objects for the [**inspection**](/press-e/manual/components/interactable/inspection.md) details.

{% hint style="info" %}
You can also reference these objects via scripts. Get the **UI Prefab** with `GetComponent<UIPrefab>()` and modify these fields directly. For more information, see [**Scripting**](/press-e/manual/scripting/ui-prefab.md).
{% endhint %}
