So I am currently implementing health bars above units in my RTS trial. I do this by placing a “total health bar” graphic, using an OnscreenImage with .setBillboardPointEye() above the units, and then by reparenting a slightly smaller, brighter “current health bar” to the total health bar (I do it separately because I want to be able to modify the size of the current, but not the total, bar when the unit takes damage).
However, I find that all I see is the parent bar; I can only see the smaller, brighter bar if I make it bigger than its parent. I want to be able to see the current health bar in front of the total health bar, but it seems to be behind it.
I can correct this by parenting the total health bar to the current health bar instead, but I suspect this will lead to problems, or at least complications, when I have to resize the current health bar without resizing the total health bar. I’ve tried changing the Y on the billboard effects, to no avail. Is there a simpler way to put the child billboard in front of the parent billboard?