Create Health bar UI in game

Hi everybody, I am working on a top down game. I want to create the health bar displaying above my character in game, such as this:

9ad24856bc965d0acea36eaa0ae61a203d5d112c.jpeg

I create a widget blueprint contains progress bars as my health bar in game, then add it to Widget Component in my character blueprint. My problem is the health bar also rotates as my character does. I want it always face to my camera just like the billboard component:

e983163bcc0a99a21f00b69ea4449d2dfd757f37.jpeg

2430be01b8997e0cba79036cc9d48c3fb41e4872.jpeg

Any solution? Thanks.

You need to set its rotation according to the camera viewport, but only the Yaw of the healthbar, unless you want it pitching and tilting as well.

Hello, did you try to set the widget component’s UI space to Screen ?

Wow thank you very much. I am following Yggdrasils’ video and the result is not what I want but you just helped me out :cool:

It is not my video.