flarb
9 months agoPartner
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't the default contents that are on the textgizmo in scene. How do you update these?
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");`