> 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/uifactory.md).

# UiFactory

## Introduction

UiFactory is a class made to create easly UI elements (Canvas, Texts, Images).

## Code

```cpp
//create canvas
auto canvas = KapEngine::UI::UiFactory::createCanvas(scene, "Canvas Name");

//create text
auto text = KapEngine::UI::UiFactory::createText(scene, "Text Name");

//create image
auto image = KapEngine::UI::UiFactory::createImage(scene, "Image Name");

```

{% hint style="info" %}
all return values are std::shared\_ptr\<GameObject>
{% endhint %}
