Health bar on each target

Hi

Anyone knows how to create an horizontal health bar on top of each target?
The game is 3d. I saw lots of samples how to do it for the FPS player static on the screen, but I haven’t found one to position it on 3d on top of each player so that I can know the remaining life on each of them.

Regards,
Joaquin

You can use Camera.WorldToScreenPoint to get the position where a given object appears on the screen. You can then use this as a basis for displaying the health bar using the GUI system.