playMaker

Author Topic: Get Event Info problems/NGUI/Playmaker [RESOLVED]  (Read 1899 times)

Patamushko

  • Playmaker Newbie
  • *
  • Posts: 5
Get Event Info problems/NGUI/Playmaker [RESOLVED]
« on: August 29, 2014, 10:10:22 AM »
Hello, I am trying to combine NGUI and Playmaker.

I have an FSM on my receiver object and a button that fires an On Click Event.

FSM changes its state succesfully but when I perform a get event info in the next state variable remains null.
Any help would be appreciated.

And yes I use the package I have downloaded from your site for NGUI 3.5.9
« Last Edit: August 30, 2014, 11:38:29 AM by Patamushko »

Patamushko

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Get Event Info problems
« Reply #1 on: August 29, 2014, 12:01:27 PM »
This thing just does not work at all I have even tried to send this event using the FSM on another game object just to test or perform set event data before sending this event no luck. Looks like the functionality does not work.

Patamushko

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Get Event Info problems
« Reply #2 on: August 30, 2014, 07:06:02 AM »
Resolved you can close the topic :-)

cloud03

  • Full Member
  • ***
  • Posts: 249
  • Viva Playmaker!
    • Milkish Game Studios Blog
Re: Get Event Info problems
« Reply #3 on: August 30, 2014, 07:54:59 AM »
could you share how you resolved the problems here? It might be useful for someone with the same problem in the future..

Patamushko

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Get Event Info problems/NGUI/Playmaker [RESOLVED]
« Reply #4 on: August 30, 2014, 09:28:53 AM »
Sure. First I will describe my architecture:
I have a gui with multiple buttons and GUICamera handles and treats all the incoming events via Playmaker FSM that was the idea.
The problem is if you do exactly as described here : https://hutonggames.fogbugz.com/?W1111
(attaching a NGuiEventsToPlaymakerFsmEvents to camera and send NGUI notifications directly) you will not be able to determine the event origin.

The solution: Create FSMs on your buttons that will listen to OnClick events and then propagate them to your main handler object.

Button(NGuiEventsToPlaymakerFsmEvents )->ButtonsFSM->MainHandlerFSM.

Like this.