How to connect the variables C ++ in UMG?

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.

Blueprints, Creating Variables in C++ For Use In BP

Couple month ago I asked similar question :slight_smile:

How to cast C++ variable to another Blueprint class

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.

Like this.

C++
float CharacterHealth;

to

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.

Thank you for your kind reply ! I’ll have to do it right away.