Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: TeMatoLoco on August 03, 2022, 02:15:25 PM

Title: Unity Animation Event; Can't find SendEvent(String)?
Post by: TeMatoLoco on August 03, 2022, 02:15:25 PM
Hi Playmaker Team!

I've been trying to make some Animation Events work and all the tuts I have followed show that it should work if the Animation Event is set to SendEvent(String)...
However when I go to set this, Unity shows this as the Animation Event in the Inspector (See Attachment)

Ultimately, I can't seem to find how to change it to SendEvent(String)?

I've also tried using the 'Function' and 'String' parameters with no luck...
Title: Re: Unity Animation Event; Can't find SendEvent(String)?
Post by: 8bitbrainpower on August 04, 2022, 07:47:12 PM
Hello,
I used to have the problem, fixed it by doing;

1. Make sure you have an Animator component on your object (and set the proper controller into the first field ofc)
2. Make sure your Animation clip is present in your Animator controller tree window
3. Make sure your have an Playmaker FSM (even empty) on your object

Then all the available events should appear when clicking on a animation event in the animation tab.
Hope it helps
Title: Re: Unity Animation Event; Can't find SendEvent(String)?
Post by: djaydino on August 04, 2022, 11:48:35 PM
Hi.
in addition to 8bitbrainpower post.
You also need to have the Game Object select in the hierarchy, then select the animation in the animation list on the animation window.

if you select the animation directly from the project window it will not show.