Author Topic: NGUI 3.0.6 f7 pressing but moving to next button  (Read 7532 times)

richgizmo

  • Guest
NGUI 3.0.6 f7 pressing but moving to next button
« on: December 02, 2013, 01:16:08 PM »
Hi

I recently updated NGUI and now have a little problem with sticky press. I need to press one button (arrows) and then go to the other button in the same touch down. Move a finger from one arrow to the next etc.

This worked on the previous version of NGUI can't t  seem to find the checkbox for it this time.
Could you let me know how to do this on the new version.

Thanks
Richard

richgizmo

  • Guest
Re: NGUI 3.0.6 f7 pressing but moving to next button
« Reply #1 on: December 03, 2013, 06:32:39 AM »
Can anyone help me on this issue?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 3.0.6 f7 pressing but moving to next button
« Reply #2 on: December 03, 2013, 09:43:19 AM »
Sticky press is gone because it's no longer needed. You now get extra OnDrag notifications you can listen to:
  1. /// * OnDragStart () is sent to a game object under the touch just before the OnDrag() notifications begin.
  2. /// * OnDrag (delta) is sent to an object that's being dragged.
  3. /// * OnDragOver (draggedObject) is sent to a game object when another object is dragged over its area.
  4. /// * OnDragOut (draggedObject) is sent to a game object when another object is dragged out of its area.
  5. /// * OnDragEnd () is sent to a dragged object when the drag event finishes.
So where before you'd listen to OnPress and check to see if something is being dragged, now you'd have OnDragOver / OnDragOut functions.

richgizmo

  • Guest
Re: NGUI 3.0.6 f7 pressing but moving to next button
« Reply #3 on: December 03, 2013, 01:29:44 PM »
Thanks for help. It worked  :)

zazery

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: NGUI 3.0.6 f7 pressing but moving to next button
« Reply #4 on: December 03, 2013, 02:18:28 PM »
Did not know about the new drag notifications. The <summary> at the top of UICamera.cs was updated but the online documentation wasn't.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 3.0.6 f7 pressing but moving to next button
« Reply #5 on: December 03, 2013, 06:14:11 PM »
My fault. I will do that. Thanks for the reminder!