how to display health bar on top of character?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By icqqq

I want to make the texture progress to follow the character and place on top of character.

How can I do that?


PS. I am saying in 3D character and I want a 2D health bar on top of the 3D character

What you may do is attach a Sprite3D to the model’s node. Where the 3D model goes, the Sprite3D will follow. When necessary (such as adjusting the health bar), have the Sprite3D disappear or reappear.

Ertain | 2018-06-17 18:27

Thank you.
Will the Sprite3D always face to the camera?
Or I need to make it face to camera programatically?


icqqq | 2018-06-18 08:02

Unfortunately, I do not know how to make the Sprite3D only face the camera (or just a Viewport).

Ertain | 2018-06-18 15:57

:bust_in_silhouette: Reply From: aijinsong

I think this video may helps you