- Home /
Waste of time with gui ... hover and behind
ok i want to show a cursor from gui script i use GUI.DrawTexture to show the cursor picture. but the cursor show behind the : inventory,mini map, char stats, chat window,etc...
i know this is the order. so the script of the cursor is executed before other one.
is there a way to change the order of the script , or make GUI Level
i mean if level is 7 then the lvl 8 show hover
Anyway thanks for your help.
I did just what these others said and it works. Now my cursor is in front of the other GUI.DrawTextures. Thanks, guys!
Answer by Eric5h5 · Apr 06, 2012 at 07:10 AM
GUI.depth. It only works if you have separate scripts; setting GUI.depth in the same script won't change the order.
Answer by Kleptomaniac · Apr 06, 2012 at 07:12 AM
So you're saying that you want to have it so that your cursor is rendered in front of all your other UnityGUI elements? Not very savvy with UnityGUI, but possibly try GUI.depth?
Hope that helps, Klep
Your answer
Follow this Question
Related Questions
Changing a GUI texture while hovering over an object? 2 Answers
A node in a childnode? 1 Answer
custom mouse changing when hovering over objects 1 Answer
3D Button? 1 Answer