Cannot see C++ Property in Blueprint

Hello guys. I’m trying to go through the UMG UI Designer Tutorial here. I’m trying to bind the progress bar to my character’s health variable, but it’s not visible.

Here’s the code for my health variable:


UPROPERTY(BlueprintReadWrite, EditAnywhere)
int32 health;

I don’t think there’s any thing wrong there.

As you can see in the screenshot below, I cannot access the property that I exposed in my code. What am I doing wrong?

I think you must bind a float value to Percent, an integer value isn’t compatible.

That was it. Thank you very much.

I’d recommend making a const function to get the health percentage, those can also be bound.

Cool that is good to know. Appreciate the tip!

[Edit]

Btw is Epic hiring any new graduates? I just graduated and I am looking for full-time positions. You can PM me if you’d like.