Attribute to update live within launch from editor

Hi there,

I have been looking at the text example - which is really helpful.

However I really want to be able to update the text in the editor and for the new text to appear in any launched version from the editor.

I had a look around and saw something which I believe is related in the documentation - could anyone help with how I can add this functionality in? Stuck and still learning.

Would help me so much.

https://playcanvas.com/editor/scene/517433

Many thanks.

You are using legacy scripts here, but with new system, it is easy to subscribe to attribute change event, where you could re-render text, so it would update whenever you change it in app or from Editor: http://developer.playcanvas.com/en/user-manual/scripting/script-attributes/#updating-attributes

Hi @max,

Thanks for getting back to me - that makes more sense now and I’ve found it to work perfectly by using updated scripts.

Jon