# Text

### Introduction

FlatRedBall Text objects can be used to display information to the player such as current score or character dialog. Glue supports creating and editing Text objects in screens and entities.

### Creating a Text Object

To create a Text object in Glue:

1. Right-click on the Object item in a screen or entity
2. Select Add Object
3. Select the "FlatRedBall or Custom Type" option
4. Scroll down and select the "Text" type
5. Click OK

![AddTextGlue](/files/c9e6AGwQvqVD4Ez0Mspp) To see the Text object:

1. Select the Text object
2. Set its Display Text value to some value like "Hello"
3. Click the **Preview** checkbox in Glue

   ![](/files/c5C9WaBxxQXBTRifRVx2)

### Common Text Usage

Since Text objects are usually used for game UI, the following properties are usually set in Glue:

* [LayerOn](/flatredball/glue-reference/objects/layeron.md) - Text objects are usually placed on a UI or HUD layer
* [AttachToCamera](/flatredball/glue-reference/objects/glue-reference-attachtocamera.md) - Text objects are usually displayed in a fixed position on screen


---

# 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://docs.flatredball.com/flatredball/glue-reference/objects/object-types/text.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.
