Hi.
For Buttons you can can use the "On Click" on the component.
drag/drop the object with the fsm faster you added a onclick event.
then select playmaker and send event then put the event name you want to trigger (don't use the UI Click Global, make your own)
only downside on this is that the playmaker fsm need to be the top one in the inspector (if you have multiple fsms on the object)
Hello djaydino,
Thank you for reply, i'm aware that work around. But i don't like that it's rely on "names". And when i need add another button i have to do process again. Some objects i have had multiple fsms so i have to do every one of them.
I have a another workaround that adding another fsm for just "button" function that it's only track button and send event another fsms who need it. With this i can do even some fsm templates but i don't like that either
I really like UI Click Global Transation and i'm very happy to use them since i discover. It's easy to implement, it's simple (fsm states)
. Can i ask why it doesn't work when creating prefabs in runtime ?
Thank you.