I want to draw HUD stuff between 2 camera layers. The image below displays my situation.
- This is the 3D world, which should be drawn below 2 and 3, and this happens correctly
- This is my 3D hud, which is rendered by a different camera
- This is a 2D image that is drawn on the HUD, and I want to draw this between layer 1 and 2, between the 3D world and the 3D Hud.
So basically, how can I specify the depth of the HUD elements drawn on the screen?
They are drawn with this piece of code:
GUI.Label(new Rect(m_screenPosition.x + 30, m_screenPosition.y - 100, m_textureToDisplay.width / 2, m_textureToDisplay.height / 2), m_textureToDisplay);