Forum Discussion

flarb's avatar
flarb
Partner
9 months ago
Solved

TextGizmo text.set not updating text at runtime

Is there some trick to changing the content of a TextGizmo at runtime? I call text.set with a string and it doesn't update. If I print the contents after set with text.get it returns "..." which isn'...
  • Shards632's avatar
    9 months ago

    There is no 'trick'.  You should just be able to call text.set('value'). Make sure you are working with a TextGizmo, tho... e.g.
    `this.props.gizmo?.as(TextGizmo).text.set("hello");`