I have a problem with the visibility of my variable default value in a widget.
When I begin play I am creating and adding widget A to the viewport, this widget contains to buttons.
The first one reads player and is clickable and calls the second widget. The second button should display the default value of a variable from widget B however on begin play that button is just empty.
Once I click the first button which adds widget B to the viewport, the second button is populated with the default value.
After I enter a value into the editable text that value is fed back into the second button.
I feel like I had found the solution somewhere but just can’t find it again.
Any help would be appreciated.
I have found a way to get the result that I’m looking for, however it feels more like a cheat than an actual solution.
I created a copy of widget A and removed the binding in it, this allows the text in the text block to show when the widget is first created.
On Begin Play I create the widget without the binding. When I click the Player button, all widgets are removed and the widget with the binding and the Player Info widget are created. The player info widget holds the variable that drives value then fed to the second button.
This does what I need it to do for now but it feels like there should be a better way to accomplish this. So, please if anybody has any ideas, I’d be grateful to hear them.
I’m having this same issue. I know this an old post and has been (sorta) resolved, but I’m posted here anyway in case someone has found a proper solution.