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:


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:



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.