Author Topic: NGUI + FingerGestres  (Read 8882 times)

hvilela

  • Guest
NGUI + FingerGestres
« on: October 14, 2012, 05:31:26 AM »
I'm trying to integrate NGUI and FingerGestures and to do this I have to know when an action is performed outside an NGUI element.

At the moment I'm checking if UICamera.hoveredObject is not null. It works fine for mouse inputs, but not for touches.

There's any "no-extra-raycast" solution for this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI + FingerGestres
« Reply #1 on: October 14, 2012, 05:58:24 AM »
I know people have used FingerGestures successfully with NGUI since back in January, so I will let them answer.

hvilela

  • Guest
Re: NGUI + FingerGestres
« Reply #2 on: October 14, 2012, 11:19:39 AM »
Are you there, people?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI + FingerGestres
« Reply #3 on: October 14, 2012, 02:37:51 PM »
Sunday may not be the best time to ask :) -- Check back tomorrow when others will be at work.

ddfire

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: NGUI + FingerGestres
« Reply #4 on: April 20, 2013, 08:53:30 AM »
hey any news?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI + FingerGestres
« Reply #5 on: April 21, 2013, 06:34:17 AM »
I haven't used fingergestures myself, but I'm considering it for a new project, so if someone with some experience had something to share, that would be great.

SketchWork

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 44
    • View Profile
Re: NGUI + FingerGestres
« Reply #6 on: April 21, 2013, 07:22:53 AM »
We successfully use NGUI and FingerGuestures on numerous projects and they work perfectly together.  Make sure you are running the latest versions of both as some earlier versions clashed in some areas.

The easiest way is to:

1) make sure you have the FG prefab in the root of your scene.
2) drop on a FG guesture component for the particular guesture you are wanting to capture.
3) assign the event to the script you are wanting to send the messages to and you are done.

ddfire

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: NGUI + FingerGestres
« Reply #7 on: April 27, 2013, 08:27:13 PM »
i have a tap detector on an object but if the user move the camera, the gui (made with ngui) ends over the object and if the user tap the gui the ray hits both the button and the object... how i solve this?
Thanks