enemy health bar variable, failed to find property

Enemy health is working, but the health bar isn’t. I’ve tried casting the character health variable to the return node by binding the variable. It was a no go. Now I have a float that is defined in the UMG graph handling the return value.

The health bar is added to the enemy AI Character as a component. However, when I try to cast to the enemy health bar. The set variable has the message,“failed to find property” in the variable details.

if I change the Health Bar filler value manually, the health bar percentage updates, but I cant get the cast to work for some reason. I’ve been all over the forums and the Answer hub for the last two days trying to figure this out to no avail. Any help would be appreciated.

Is your Helathbar a component, or an Actor?

Trying adding a ChildActor Component, and then set it’s Actor to your Health Bar. When using it, get the ChildActor, get it’s Actor, then cast it to your health bar.

Also, did you try dragging off from your HelathBar component onto the graph?

Well, it was worth a shot. I’m using a UMG as a widget component in my AI Character BP. I tried what you described. Ended up with this. Still can’t find the property. I’m also using it as a 3D instance of a blueprint, which is flagged as experimental. Thanks for the response btw!

Here is a video by tesla that solved the issue. I’m on 4.7.6 and it worked out just fine.