- Home /
countdown effect outside canvas(using sprites)
I want a circular health bar effect but around my enemies. Everywhere I searched they have used it in canvas UI. As I want it around my enemies, it should spawn with enemies, follow enemies and get destroyed with them only. Anyone have any idea how to do this?
This is what I am looking for. But this is in canvas.
Answer by game4444 · Aug 11, 2017 at 05:48 AM
Circle Health is bit difficult to make in 3D environment. You can make this easily simple horizontal health bar. Using sprite renderer. Make horizontal health bar drag it into your scene. Adjust pivot to the edge of object and use scale value for increasing or decreasing of health. With this create another object with TextMesh component. This will show text in 3D world environment. Adjust both Object just above your enemy. TextMesh link is here. Hope this will give you idea. In short you can try this with sprite renderer and TextMesh.
is selecting world space in Canvas going to help? will circle health move with the enemy? I am making it in 2D.
Your answer