x


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.

more ▼

asked Apr 06 '12 at 07:05 AM

hesa2020 gravatar image

hesa2020
48 11 13 16

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

GUI.depth. It only works if you have separate scripts; setting GUI.depth in the same script won't change the order.

more ▼

answered Apr 06 '12 at 07:10 AM

Eric5h5 gravatar image

Eric5h5
80.1k 41 132 519

Oh, damn ... Didn't refresh ...

Apr 06 '12 at 07:14 AM Kleptomaniac
(comments are locked)
10|3000 characters needed characters left

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

more ▼

answered Apr 06 '12 at 07:12 AM

Kleptomaniac gravatar image

Kleptomaniac
2.5k 6 11 21

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3722
x3674
x197
x55

asked: Apr 06 '12 at 07:05 AM

Seen: 549 times

Last Updated: Apr 06 '12 at 07:23 AM