> For the complete documentation index, see [llms.txt](https://kap35.gitbook.io/kap-engine-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kap35.gitbook.io/kap-engine-wiki/user-manual/ui/text.md).

# Text

{% hint style="info" %}
Your GameObject which contains Text component, need to be the a child of GameObject which contains a Canvas component
{% endhint %}

Set content of your text :&#x20;

```cpp
myText.setText("My text is great !");
```

Set spacing between letters (0.5f is basic value) :&#x20;

```cpp
myText.setSpace(1.f);
```

Set text size (15.0f is basic value) :&#x20;

```cpp
myText.setPoliceSize(12.f);
```

Set text color (white is basic value) :&#x20;

```cpp
myText.setTextColor(KapEngine::Tools::Color::white());
```

All getters have same name that there setters. You juste have to replace set with get.
