Hi, I have a widget that displays a certain number that has a binding to update the number, but I dont know how to add other words next to the number, how can I do this?
Thanks
Hi, I have a widget that displays a certain number that has a binding to update the number, but I dont know how to add other words next to the number, how can I do this?
Thanks
I guess this also works:
This way you can get away with a single text block. And you can append and / or build strings:
Also, bindings execute every frame. Perhaps there is no need to update text 60 times per second… Turn the update into an event and set text only when it actually changes. Just a thought.
Much better. The variable is still polled every frame, though. You can skip the variable, remove the binding and:
Get text Block → Set Text
The Text Block is not exposed as variable by default but you can check the tickbox. This way it really happens only once, only when the custom event fires.
May be negligible if it’s a couple of widgets but may as well become somewhat pricy if you have 100s of fields polling all the time.
Hi, is it possible to set the text in a other widget? or only possible inside the widget the text is from?
Nevermind sorry I already did it, my code was done incorrectly