Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: skytrack on May 28, 2012, 04:22:12 AM

Title: Detect any UI touch with two or more UICamera instances on the scene
Post by: skytrack on May 28, 2012, 04:22:12 AM
Hello

We have two UI cameras (different depth) on the scene with UICamera scripts on them.
How to recognize if it was any UI touch (press) ? (UICamera.currentTouch is a static variable, but we have two UICamera's)

Thanks in advance
Title: Re: Detect any UI touch with two or more UICamera instances on the scene
Post by: ArenMook on May 28, 2012, 11:30:32 AM
The 'current' series of variables always hold the value of the last camera that has issued the event. You can check this value in OnPress, OnDrag, and other notification functions.