How to set TextMesh in front of GUITexture or Graphics.DrawTexture in 2D [SOLVED]

Hi to all,

i have a small event system based on Playmaker which draws the texture and text when called. The problem is whatever Z position i set, the TextMesh text is always behind the Texture. Any elegant solution for this except messing with multiple cameras?

Here’s how it actually looks like

Try to drag the text down in the Hierarchy. From script I believe you can do transform.SetAsLastSibling()

Nothing. I’ll try it from script.

Sounds like you are mixing IMGUI elements with UI elements. They are not designed to work together. Use a UI image to draw your texture.

You were right, i wasn’t aware they could be used together. Everything work fine now, thanks!