playMaker

Author Topic: Onclic send event to NAMED fsm  (Read 1610 times)

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
Onclic send event to NAMED fsm
« on: February 14, 2018, 02:40:41 PM »
Hi,
I can send an Event to an FSM from the  OnClic() list of a Unity Button (PlaymakerFSM.SendEvent).
But it only works if the FSM has its default "FSM" name.
If it has a different name it no longer works.
Is there an easy solution (keeping my FSM name;-) ?
(attached screenshots)
Thanks
Have a nice day :-)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Onclic send event to NAMED fsm
« Reply #1 on: February 14, 2018, 06:12:55 PM »
Hi.
Do you have multiple fsms?
I believe it should work, but only on the top fsm in the inspector,
But i am not sure :)

But you can use the PlayMaker UGui Component Proxy Component.


pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
Re: Onclic send event to NAMED fsm
« Reply #2 on: February 14, 2018, 06:40:00 PM »
Thanks djaydino, you're right ... in my new test it works ... I'm confused because on previous case it didn't...
If I find out what make it work or not , i will post here so others can benefit from the reading.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Onclic send event to NAMED fsm
« Reply #3 on: February 15, 2018, 02:04:35 AM »
Hi.
Probably because there was an fsm above that one,
Anyway if you need to send events to multiple fsms on 1 object you can use the proxy :)