Binding not working

Hello guys, I’m still pretty new to ue4 so I can’t figure out why this is happening but when I try to bind a randomly generated number from my character into a widget to display it, it leaves the space empty. The number is generated and kept in my character I checked it with “Print String” but I can’t get it to show. I also checked anchors and alignment so I’m not out of things to check.

First pic is just picking the random number and saving it as strength on the character (a little misspell).
str

Second pic is of the function getting generated on event play.
stats

the third pic is me trying to make a binding that works so I can show the number in my widget.

This is what shows as you can see it just shows an empty space the other stats have no bindings apart from health which repeats what happens with str.
game

  • does the branch return True?
  • does the cast Fail?

Also, this is probably one of the least efficient ways of pulling data into widgets. But we can address that once you get the text to display, if at all needed, ofc.

Sorry for the late reply.

I have tried it both ways and it seems to act the same way with nothing showing up. Could it have something to do with the way the text component is set up? I would love to know how to make it more efficient as this is the best way I can think of doing it at the moment. Thank you for your help again!

Could you share some more details about how this is build - we know nothing about the systems employed, so it’s pretty much impossible to advise on how to fix it. No one knows what is broken.


On the most fundamental level, in the player blueprint:

I’d try not to rely on the widget pulling data from the player every frame (text box binding) - the player’s data will not update that often. It can work OK but it’s wasteful. Consider updating the widget only when the stat changes.