Author Topic: Detect any UI touch with two or more UICamera instances on the scene  (Read 2905 times)

skytrack

  • Guest
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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
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.