[SOLVED] Editing a Text Element in Code

Hi all,

I’m back with probably another simple question! I’m trying to edit text through code, I seem to be able to get to the text element with this:

this.questionText.element.text

and if I log it the correct text is shown in the console but how do I change this element?

I’ve tried things like

this.questionText.element.text("changed")
this.questionText.element.text = "changed"

with no luck. Does anyone know the correct way to do this?

Thanks,
Mark

This should work. Can you share the project please?

1 Like

Thanks for getting back. That just worked, I must have done something before because I tried that earlier and I got an error!

Learning everyday I guess!

Thanks again