I get that there are a lot of guides for floating ‘billboard’ health bars, but none of them seem to really cover what I am looking for.
I’m looking to be able to create a health bar which will be displayed in a box above the enemies head, the enemies name will be displayed above the health bar in the same box.
(Sort of like this)
In addition to that, I want the health bar/box only to be displayed when the enemy is looked at (I’m assuming I could achieve this using raycasts)
Any of you guys know how to do this? or if you don’t would you be able to point me in the right direction, thanks.
You say there are plenty of guides for floating health bars (which there are), just follow one of them but also add a Text component as a child of the health bar prefab
Second, you already answered your question, raycast is the way to go. I think if you just try yourself you will figure it out, you seem like ur almost there already