playMaker

Author Topic: Unity Animation Event; Can't find SendEvent(String)?  (Read 814 times)

TeMatoLoco

  • Playmaker Newbie
  • *
  • Posts: 1
Unity Animation Event; Can't find SendEvent(String)?
« 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...
« Last Edit: August 03, 2022, 02:17:03 PM by TeMatoLoco »

8bitbrainpower

  • Playmaker Newbie
  • *
  • Posts: 14
Re: Unity Animation Event; Can't find SendEvent(String)?
« Reply #1 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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Unity Animation Event; Can't find SendEvent(String)?
« Reply #2 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.