Author Topic: Scroll View containing draggable icons  (Read 3253 times)

Petroz

  • Guest
Scroll View containing draggable icons
« on: July 12, 2012, 04:35:23 AM »
Hi,

I am looking to make an inventory for my game. What I need is a scroll view containing icons which I can then drag into the real world.

I am basically considering a combination of these two examples:
http://www.tasharen.com/ngui/example13.html
http://www.tasharen.com/?page_id=4444

My main concern is having nested draggable objects. Will the system be able to distinguish between drags of the icon and drags of the scroll view correctly?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll View containing draggable icons
« Reply #1 on: July 12, 2012, 04:48:35 AM »
Whatever collider is in front will be the object that will get your onpress/ondrag events.

Petroz

  • Guest
Re: Scroll View containing draggable icons
« Reply #2 on: July 12, 2012, 05:18:16 AM »
Thanks Aren, that makes sense.