playMaker

Author Topic: Playmaker not detecting NGUI button Mouse Events.  (Read 2921 times)

Cmilian

  • Playmaker Newbie
  • *
  • Posts: 5
Playmaker not detecting NGUI button Mouse Events.
« on: January 27, 2014, 04:20:56 AM »
Playmaker not detecting NGUI button Mouse Events.

I read something about a component that could be added the object to pass these event to the FSM but I could not find it. Is this still the solution for this issue?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker not detecting NGUI button Mouse Events.
« Reply #1 on: January 29, 2014, 02:30:15 AM »
Hi,

 yep, the free PlayMaker ngui bridge has this covered for you:

https://hutonggames.fogbugz.com/?W1111

Study the section on "Listening to Ngui events"

Bye,

 Jean

psypol

  • Playmaker Newbie
  • *
  • Posts: 39
Re: Playmaker not detecting NGUI button Mouse Events.
« Reply #2 on: March 16, 2014, 08:16:49 AM »
Hello

my FSM does not react to the gui events catch :-(

i did all the steps described here : https://hutonggames.fogbugz.com/default.asp?W1111
installed Free ngui 270 + PlayMakerNgui.unitypackage

i managed to follow all the steps until this part :
Quote
In the Fsm, add the ngui global event you want from the context menu. for example "NGUI / ON SUBMIT", and NGuiEventsToPlaymakerFsmEvents component will turn the submit event green so you know it's properly set up on that front.

my event turned GREEN as mentionned.
but when i click on a ngui texture for example : the event is not triggered

here is an extract of the elements of my project


do i missed something ? did something wrong ?

psypol

  • Playmaker Newbie
  • *
  • Posts: 39
Re: Playmaker not detecting NGUI button Mouse Events.
« Reply #3 on: March 17, 2014, 02:55:20 PM »
up! anyone ?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker not detecting NGUI button Mouse Events.
« Reply #4 on: March 18, 2014, 08:47:20 AM »
Hi,

 UITexture doesn't fire any ui event actually. that's the problem. you have to use an interactive element. Typically it must have a collider component to begin with.

bye,

 Jean