Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Petroz on July 12, 2012, 04:35:23 AM

Title: Scroll View containing draggable icons
Post by: Petroz 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?
Title: Re: Scroll View containing draggable icons
Post by: ArenMook on July 12, 2012, 04:48:35 AM
Whatever collider is in front will be the object that will get your onpress/ondrag events.
Title: Re: Scroll View containing draggable icons
Post by: Petroz on July 12, 2012, 05:18:16 AM
Thanks Aren, that makes sense.