playMaker

Author Topic: UI PlaymakerFSM.sendevent(string) problem  (Read 971 times)

andrewgideon

  • Playmaker Newbie
  • *
  • Posts: 6
UI PlaymakerFSM.sendevent(string) problem
« on: February 16, 2020, 06:13:55 AM »
I use UI onClick () or onvaluechange and pass events through PlaymakerFSM.sendevent(string)
I found that only the first FSM event of the specified object will be triggered
If it is a new second FSM, the event cannot be triggered
why??
Please tell me~

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: UI PlaymakerFSM.sendevent(string) problem
« Reply #1 on: February 16, 2020, 08:05:26 AM »
Hi.
Indeed it will only trigger on the top fsm from the inspector, i believe its due to some Unity limitations.

if you need it for buttons its better to use 'Ui Button' actions if you need it on multiple fsms on the same object, or make a fsm on the buttons itself and target that, then use a send event (by name) to 'forward' the event

andrewgideon

  • Playmaker Newbie
  • *
  • Posts: 6
Re: UI PlaymakerFSM.sendevent(string) problem
« Reply #2 on: February 17, 2020, 02:39:15 AM »
thank you for your help
I already know how to use <Playmaker UI action> to solve this problem