Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: cloobot on February 04, 2014, 09:53:37 AM
-
Has anyone else noticed an issue with trying to SendEvent (String) from an Event marker on an Animation frame, if there are multiple FSMs on a GameObject? It seems to work fine if there is one FSM -- if there are two, the Functions drop down doesn't work. Any idea why that might be?
-
Hi,
Can you explain more about your setup? I am not sure I full yunderstand how you go from animation frames to playmaker events.
bye,
Jean
-
Sure thing.
I'm sending an event from my animation to trigger a sound (https://hutonggames.fogbugz.com/default.asp?W181). As long as I only have one FSM on my game object, it works fine. If I add a second one, or if I have more than one to begin with, then the Function dropdown doesn't work when I add my animation event.
-
Hi,
Can you send me a repro package? withat animation?
bye,
Jean
-
It's not just one specific animation -- it's any animation attached to a game object, with more than one FSM on the same game object. This really isn't occurring for anyone else?
-
I don't think the Unity UI for selecting animation event functions works if there is more than one instance of a component type on the GameObject. I did a test with a regular script added twice to the same GameObject and had the same problem...
-
Hi,
I only meant as a convenience for me to look at this quickly, sorry :)
Bye,
Jean
-
I don't think the Unity UI for selecting animation event functions works if there is more than one instance of a component type on the GameObject.
Ugh, right you are. How annoying.
-
It's a bit of a pain, but you could make a script to just forward animation events to PlayMakerFSMs. There would only ever be one of these scripts on a GameObject. Actually that would be a useful addition to playmaker... I'll try to get that into the next update...
-
Also having the same issue - trying some complex character movement animations, and being able to trigger multiple FSMs with animation events would be very useful, but right now I can't choose any functions in my animation event drop down.
-
Sorry for waking an old thread, but is this problem has been addressed on the latest playmaker? Thanks
-
I've just run into this issue with the current release so it seems its still a problem-
-
Has anyone figured out a work around while having multiple FSMs? Somebody mentioned forwarding events but I can't figure out how to involve another game object. Unfortunately I can't remove the extra FSMs.
-
Has anyone figured out a work around while having multiple FSMs? Somebody mentioned forwarding events but I can't figure out how to involve another game object. Unfortunately I can't remove the extra FSMs.
can you make your question clearer?
you can send global events to other fsms if that's what you're asking,
simply create an event and click the box next to it to mark it as a global event and then right click on the state you would like to send the event to, select the global event and simply send whatever from whichever fsm you want
-
Sorry Carmichael, I was assuming context from the previous comments. The problem is there are no send event choices in the dropdown menu for animation events when you have more than 1 FSM (or multiples of any component).
I'd like to be able to send an event during a specific frame of an animation but it still seems impossible for me.
-
Sorry Carmichael, I was assuming context from the previous comments. The problem is there are no send event choices in the dropdown menu for animation events when you have more than 1 FSM (or multiples of any component).
I'd like to be able to send an event during a specific frame of an animation but it still seems impossible for me.
ooh that's strange....it works for me.
-
Maybe it's simply a matter of upgrading. What version of Unity and PM are you using?
THANKS
-
Hi,
I would use the Event Proxy Wizard, which lets you create a component with a public method which can then forward a PlayMaker event accuratly.
-- you likely have it already if you have PlayMaker Utils, it's in the menu "PlayMaker/Addons/Tools/Event Proxy Wizard"
-- else it's on the ecosystem.
Bye,
Jean