How to add a Health Bar that follows a 3D object

Hey Guys
I’m trying to add a health bar to 3d object moving in 3d space, like the health bar is attached to them
at the moment I’m just emitting debug text
is that possible?
if so, how?

There’s an Attach Actor to Actor BluePrint, perhaps you could use it.

Target node would be a reference to Health Bar, and In Parent Actor node would be your 3D object.

Try this:

  1. Create a simple box/plane representing health bar and attach it to the object as Static Mesh component (make it a child of object’s 3d mesh)

  2. Make it always facing to your camera (set rotation based on camera’s rotation)

  3. Scale it horizontally by percentage of object’s health.

You can try something similar with Billboard components - they’re always facing a camera, but i don’t know how to scale them yet.

yeah, facing the camera that might be a solution, I did tried parenting an object but it was rotating and at the time did not think about that, i’ll try it, thanks