Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: roberto_sc on October 14, 2013, 03:26:28 AM

Title: OnPress being called multiple times
Post by: roberto_sc 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?
Title: Re: OnPress being called multiple times
Post by: ArenMook 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.