> For the complete documentation index, see [llms.txt](https://docs.siminsights.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.siminsights.com/hyperskill-studio-authoring/virtual-entities/special-virtual-objects/text-display.md).

# Text Display

A special VO that display any text the user wants

"Text Display" is a Special Virtual Object that displays text in the simulation.

## Add a text display

Search for "TextDisplay" in the virtual object search panel and add it to the simulation. Then add the customizable attributes below and set them as needed.

## Customizable attributes

| Attribute       | Type    | Description                                                                 |
| --------------- | ------- | --------------------------------------------------------------------------- |
| Text            | String  | Value of the display text                                                   |
| Color           | Integer | Text color (see color codes below)                                          |
| BackgroundColor | Integer | Background color (see color codes below)                                    |
| FontSize        | Integer | If the attribute does not exist or is less than 0, it defaults to auto size |
| Justification   | Integer | Justification type (see below). Default is 1, center                        |
| Visibility      | Bool    | Whether the text is visible                                                 |
| Transparency    | Integer | 0-255, sets the alpha value of the text                                     |

### Color codes (Color and BackgroundColor)

* 0: white
* 1: black
* 2: red
* 3: green
* 4: blue
* 5: yellow
* 6: cyan
* 7: magenta

### Justification codes

* 0: Left
* 1: Center
* 2: Right
* 3: Justified
* 4: Flush
