Author Topic: 2 clicks firing  (Read 1515 times)

wijesijp

  • Guest
2 clicks firing
« 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? 

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 2 clicks firing
« Reply #1 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.