Hi, I have a prefab like below and there're about 10 HUD in my scene.
HUD
|--BoxFrame(sprite)
|--Sprite
|--Label
I want to control their depth, make every HUD overlap correctly.
My work around is set every sprites depth as queue in script, it works but seems not a good practice.
What's the best practice?
First comes to my mind is UIPanel for each HUD. It works good but extra draw-call is heavy.
Then I noticed the old-style HUD.transform.z, and it seems not working anymore.
I also tried put a UIWidget on HUD hoping depth can work like UIPanel, no luck.
Any idea?
Thank you!