Text

Your GameObject which contains Text component, need to be the a child of GameObject which contains a Canvas component

Set content of your text :

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

Set spacing between letters (0.5f is basic value) :

myText.setSpace(1.f);

Set text size (15.0f is basic value) :

myText.setPoliceSize(12.f);

Set text color (white is basic value) :

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

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

Last updated