Author Topic: OnPress being called multiple times  (Read 2930 times)

roberto_sc

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
OnPress being called multiple times
« on: October 14, 2013, 03:26:28 AM »
This one is driving me crazy...

I'm working on a port that uses NGUI 2.1.X. I have a monitor with touch support. I'm disabling mouse, touch, controller and keyboard on UICamera. Still, outside editor OnPress is being called once when using mouse and twice (2 with down == true and 2 with down == false). It correctly doesn't call when on editor.

I'm sure there aren't any UICameras with input enabled.

Is there any way to get OnPress called without mouse/touch enabled on UICamera?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: OnPress being called multiple times
« Reply #1 on: October 14, 2013, 09:54:22 AM »
If you are disabling both mouse and touch, nothing should be getting called -- and certainly not twice. Make sure you are disabling this on the correct UICamera -- first one to draw.