Different animation event section

Hey there! i am taking “Unity 2D RPG: Complete Combat System” course.
in 16th video, we put an animation event to destroy the sword swing effect.(there is a script that includes Destroy(gameObject) method and we choose it. )
image

But mine event section is different than the usual.
image

How can i use it that way? Thanks

The script that handles the event must be on the same game object as the animator. Unity can then find it and populate the list. If the entry is empty (like yours) it’s because Unity couldn’t find any methods that matches what it deemed valid. Make sure the script with the method is on the same game object

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms