playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Onclic send event to NAMED fsm
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Onclic send event to NAMED fsm (Read 1648 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 :-)
Logged
djaydino
Administrator
Hero Member
Posts: 7622
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.
//www.youtube.com/watch?v=KZCtGySZ4AI
Logged
Join the PlayMaker Discord Channel!
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.
Logged
djaydino
Administrator
Hero Member
Posts: 7622
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
Logged
Join the PlayMaker Discord Channel!
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Onclic send event to NAMED fsm