Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Guiboune on June 24, 2013, 05:15:04 PM

Title: UIDragObject + depth problem
Post by: Guiboune on June 24, 2013, 05:15:04 PM
Excuse me if the topic has already been answered but I am having trouble with what seems to be the UIDragObject component.

I have sprites in my scene that all have the UIDragObject component. Another script changes their depths. The thing is, when an object is under another and I click on the one that's on top of it (depth : 2), it selects the object under (depth : 1). Why ??
Title: Re: UIDragObject + depth problem
Post by: ArenMook on June 25, 2013, 01:19:43 PM
Play mode clicking is determined by the collider, not depth. Depth is for drawing.
Title: Re: UIDragObject + depth problem
Post by: Guiboune on June 25, 2013, 02:22:17 PM
.. and what is that exactly ?
Title: Re: UIDragObject + depth problem
Post by: ArenMook on June 25, 2013, 05:47:15 PM
?
Title: Re: UIDragObject + depth problem
Post by: Guiboune on June 25, 2013, 06:08:16 PM
Play mode clicking is determined by the collider, not depth. Depth is for drawing.

what's that play mode clicking ? I don't really understand
Title: Re: UIDragObject + depth problem
Post by: ArenMook on June 26, 2013, 12:27:48 PM
When you hit the Play button, the game starts playing. Play mode clicking is clicking on the UI in your Game view while the game is playing.