Hi! I’ve added health bars to my game that appear above objects in the world like trees, enemies, etc.
I’ve decided to put these health bars on a screen space - overlay canvas and use WorldToScreenPoint to set their position on screen. This way they appear the same size no matter what distance you are from the object that the health bar is hovering over.
My game’s main UI elements are all in a Screen Space - Camera Canvas so I can have 3d objects in the UI.
The health bars are rendering on top of the main UI which is undesired. Is there anyway to work around this?