I’ve Actor and Widget Component within that Actor. In Construction script I want to set some text but I don’t know how am I supposed to do that ? I think in 4.17 it was there, but now I’m stucked…
Thanks for info.
Try wrapping it in a function or hook it up to an event and then call in the constructor.
Yes, I tried that. I pack all that simple logic into function which I call also on Begin Play. But in constructor it’s ignored.
To be precise, you want to set text in a widget component in the construction script of the object that owns it, is that right?
There is actor and one of its child components is Widget Component. I want to set text in that Widget Component according to public variable on Actor.
Hm during some tests it looks like my function is somehow calling, but it’s not redrawing the actual text on the screen
I have this exactly like this. I created new Actor and put it there and it’s working there. I’ve to recreate my Actors…Thanks
No recreation was needed. I deleted that from scene and put it back again and it worked as excepted.