Author Topic: Going through other objects  (Read 1443 times)

apple741

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Going through other objects
« on: May 28, 2014, 07:50:05 AM »
Hi,

I have a scene where there are a few objects the user can drag, the problem is sometimes the object being dragged goes behind other objects. Is there a way to always keep the current drag object in front of all other objects?

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Going through other objects
« Reply #1 on: May 28, 2014, 07:51:55 AM »
Make use of UIDragDropRoot. Watch the NGUI tutorial video that explains this: http://youtu.be/UK3aMHRfgcw?t=6m29s

apple741

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Going through other objects
« Reply #2 on: May 28, 2014, 08:22:34 AM »
Thanks very much Aren! I really appreciate the support :)

Have a great day!