Author Topic: camera.eventMask=0 needs to be an option  (Read 3682 times)

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
camera.eventMask=0 needs to be an option
« on: August 06, 2013, 03:00:49 AM »
I ran after that bug for hours

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
Re: camera.eventMask=0 needs to be an option
« Reply #1 on: August 06, 2013, 03:02:07 AM »
context: detecting taps and dragging in the 3D scene with OnMouseDown

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: camera.eventMask=0 needs to be an option
« Reply #2 on: August 07, 2013, 05:57:35 AM »
OnMouse events are going to be killed once the new UI ships. Stop using them now to save yourself the headache later.

OnMouse = NOT NGUI.

galuodo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: camera.eventMask=0 needs to be an option
« Reply #3 on: August 07, 2013, 10:32:35 AM »
This puzzle me for a long time and I find this cause me a big trouble after I update my Unity for 4.0 to 4.1.5. I have to delete this code, or a click event will be processed not only by NGUI camera , but also by other camera.

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
Re: camera.eventMask=0 needs to be an option
« Reply #4 on: August 07, 2013, 04:40:36 PM »
Ok, what do I use instead now ?

OnMouse events are going to be killed once the new UI ships. Stop using them now to save yourself the headache later.

OnMouse = NOT NGUI.