Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: langem on August 22, 2013, 11:55:50 AM

Title: Touch Events
Post by: langem on August 22, 2013, 11:55:50 AM
Hi everybody,

first post so be gentle ;) I'm using NGUI for the touch input of an android game.

I've got a left and a right button (sprite) and I'm using "onClick"-events to steer my character.

The only problem is that I always have to release the finger, if I want to press the other button.

Is there a way (event) to check if the finger is outside of the sprite? or an event that is fired if a finger slides onto a button?


thanks in advance and kind regards,

Matthias
Title: Re: Touch Events
Post by: ArenMook on August 22, 2013, 11:57:18 AM
Use OnPress instead of OnClick, and uncheck "sticky press" on the UICamera.
Title: Re: Touch Events
Post by: langem on August 22, 2013, 12:45:23 PM
Awesome! Thank you!