I have this HUD on the top of my app which shows the score (top left corner), an about button (top right corner) and a timeline in the middle. The timeline "scrolls" as time passes.
I want to draw some numbers over the timeline to show the years that it is representing. Im currently using GuiText to do it. Unfortunately I have noticed that, while the timeline bar goes behind the top left object in the scene. The GUIText remains over this object.
Is GUIText always drawn on top of everything else or is there a way to hide it behind a game object?
Update:
After some testing/research I have come to the conclusion that there is probably only one way to get GUIText to not appear in front of certain objects.
If one wishes for their Text (or for that matter any type of GUI stuff) to go behind certain objects, one must use at least one extra camera.
The second camera should be set as "depth only" and have a depth value lower than the main camera. This way, everything that is drawn by the main camera will be on top everything drawn by the second camera.
Use the Culling mask and set the objects you wish to appear/hide in different layers.