2D Toolkit Forum

2D Toolkit => Support => Topic started by: Rakesh on January 30, 2014, 07:11:28 am

Title: Differentiate between touch between scrollable area and Buttons.
Post by: Rakesh on January 30, 2014, 07:11:28 am
Hi, i am using the manual scrollable area and creating 10 buttons as the contents of the scroll area. Each button has different functions attached to it as to perform different actions. Now when i try to scroll, instead of scrolling button is getting selected.. how can i identify the touch to differentiate the touch for button and scroll area.. Please guide me.. Thanks in advance.
Title: Re: Differentiate between touch between scrollable area and Buttons.
Post by: unikronsoftware on January 30, 2014, 10:43:54 am
The button must have "Child of a UI item" ticked.
Title: Re: Differentiate between touch between scrollable area and Buttons.
Post by: Rakesh on January 30, 2014, 12:24:31 pm
i need to use scroll also along with the tap on buttons.. if i keep extended touch on button then button function should happen..
Title: Re: Differentiate between touch between scrollable area and Buttons.
Post by: unikronsoftware on January 30, 2014, 12:32:24 pm
tk2d doesn't do that. If you want that behaviour you will have to code it yourself.