- Home /
Floating Healthbar Appears when facing opposite direction of enemy
Yes, I've searched this and the solutions on the forum show to use OnBecameVisible and OnBecameInvisible to toggle the use of the GUITexture, although that doesn't work correctly.
What happens is when I turn completely around (180 degrees) the Healthbar is still there, but ontop of nothing, rather if I only turn 90 or so degrees it's completely gone.
Tried doing a few things now to fix this issue, although no luck, seems my NPC doesn't have a renderer attatched to it.
Answer by ExTheSea · May 10, 2013 at 12:14 PM
Check out this question i posted a long time ago when i had the same problem:
http://answers.unity3d.com/questions/261967/name-of-a-weapon-on-top-of-it-problem.html
Tried it, although I'm getting the error that my NPC "$$anonymous$$illa" does not have a rendered attatched to it.
Did you mean renderer?
Does your NPC not have a $$anonymous$$esh Renderer attached to it?
Hm. Really? Your $$anonymous$$illa doesn't have some type of Renderer Component attached to it?
If not you could try to attach it.