Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: wijesijp on March 15, 2013, 07:50:23 AM

Title: 2 clicks firing
Post by: wijesijp on March 15, 2013, 07:50:23 AM
In my game I have one UIButton for unlocking a feature and equipping it. When the player clicks the unlock button i change it text to “equip”. When he click that i change the text to “selected”

When I test it on the computer it is working as expected.

When I test on the Android device the unlock button goes immediately to selected state. What's happening is the button get clicked twice.

what is the standard method to stop this from happening? 
Title: Re: 2 clicks firing
Post by: ArenMook on March 16, 2013, 11:05:49 AM
Unity Remote sends both mouse and touch events, which effectively duplicates events.

Uncheck "mouse" on the UICamera, or don't use Unity Remote.