Welcome,
Guest
. Please
login
or
register
.
May 09, 2026, 05:31:21 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Detect any UI touch with two or more UICamera instances on the scene
« previous
next »
Print
Pages: [
1
]
Author
Topic: Detect any UI touch with two or more UICamera instances on the scene (Read 2905 times)
skytrack
Guest
Detect any UI touch with two or more UICamera instances on the scene
«
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
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Detect any UI touch with two or more UICamera instances on the scene
«
Reply #1 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.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Detect any UI touch with two or more UICamera instances on the scene