Health bar and other stuff in world space

Hey!

I’m trying to do a health bar that follows the character. The first thing I did was to create a Canvas as a child of the character game object (so the health bar will automatically follow the character and stay where I want it to stay).

Everything works ; my health bar follows the character and when he takes damages, the health is updated. The problem with the Canvas World Space is the orientation… I would like the Canvas always looks at the main camera… because if the character is rotated, the health bar is too and the player will not see the health bar !

Do you know any options which could do what I want ? Or do I have to code something which rotates the Canvas depending on the Main Camera’s rotation ?

Thanks (and merry Christmas ;))

Set the rotation equal to the cameras rotation every frame?

The common term for a quad that always faces camera is billboard

Just use transform.lookat to face object towards camera

Okay, I was thinking there was another way but apparently, nope!

Thanks for the term !

Sbizz.