Hello,
I have a problem with my GUI, in fact i have make a mouse with a GUITexture but the cursor is under other GUI elements.
How can i fix this problem ?
Thanks.
Hello,
I have a problem with my GUI, in fact i have make a mouse with a GUITexture but the cursor is under other GUI elements.
How can i fix this problem ?
Thanks.
The OnGUI function that is drawing your mouse cursor must have a lower depth, use GUI.depth = -100; or something low like that. The lower the depth, the later it is rendered (meaning it will be in front).
See this:
Thank you very much it fix my problem perfectly !