How to connect the variables C ++ in UMG?
Hello I'm trying to HP ProgressBar , and everything led me into a dead end.
My problem is, I have no idea how to use C++ variable in UMG. I want to connect the variables C ++ in UMG and Progress Bar.
C++ float CharacterHealth;
UMG CharacterHealth Progress Bar.
Excuse me for being so complicated. Please let me know if there is any place to check. Thank you for your detailed answer.
asked Jul 11 '17 at 07:49 AM in Blueprint Scripting
There is the same procedure as use any C++ variable in a blueprint. Your blueprint class should be descendant class from C++ class with variables to see the variables in the blueprint.
Also you need some C++ event to refresh the progress bar. Or you can do it every tick.
Couple month ago I asked similar question :)
Follow this question
Once you sign in you will be able to subscribe for any updates here