Updating code of exhisting C++ actor that is in the world outliner

Working with text as a C++ actor, and every time I make changes to the text in the source code, I have to remove the actor and replace it, resize it, rotate it. What am I doing wrong for the changes not to be made automatically.

You want to use the construction script of your actor. Using blueprint you can do this:

114431-toto.png

The variable TextToDisplay can easily be binded to C++ code/variable.
I’ve never tried it yet but if you prefer to set the text from C++ then just call a C++ function in the construction script.

Good luck :slight_smile:
Best regards.