> For the complete documentation index, see [llms.txt](https://docs.avataar.ai/knowledge-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avataar.ai/knowledge-center/ide-low-code/ide-functions/add-text-to-the-scene.md).

# Add Text to the Scene

**addTexttoScene:** to add Text to the scene (returns id of text)

| input         | text value          | required | string                 |
| ------------- | ------------------- | -------- | ---------------------- |
| position      | default: \[0, 0, 0] | optional | \[float, float, float] |
| rotation      | default: \[0, 0, 0] | optional | \[float, float, float] |
| scale         | default: \[1, 1, 1] | optional | \[float, float, float] |
| font          | Font path           | optional | string                 |
| color         | <p><br></p>         | optional | string                 |
| fontSize      | 18                  | optional | number                 |
| opacity       | default: 1          | optional | number                 |
| handleOnClick | OnClickFunction     | optional | -                      |

For more text properties visit [this](< https://protectwise.github.io/troika/troika-three-text/#supported-properties>).

```javascript
// var textId1 = IDE.addTexttoScene({
    input: 'Sheen Velvet Cair',
    color: 'Grey',
    position: [0, 0, 0],
    rotation: [0, 0, 0],
    scale: [0.2, 0.2, 0.2],
    handleOnClick: handleClickFunction
})

```
