Transfering Integer to widgets?
Hey guys, Iam kind of lost and out of ideas how to set the text of a text block (Widget) to the same value as my Integer. Ive tried to set up a "Cast to" but with that i don't know what to select as an object. This is the last step to finish my game please help guys!
asked Jun 18 '17 at 02:29 PM in Blueprint Scripting
You have two approaches to this:
answered Jun 18 '17 at 02:49 PM
This is how you can do it;
Store your integer inside a cast-able blueprint.
Go to your HUD or any other blueprint and create your widget there.
Go to your widget, add a text block and select it. Under the content tab, bind it to a function. Follow my graph.
Cast to the BP you have stored the integer there (which is player character BP in my sample).
You are done.
Follow this question
Once you sign in you will be able to subscribe for any updates here