How to Use Animation Events in Unity: The Complete Tutorial for C# and Visual Scripting

preview_player
Показать описание
Animations Events is something you should know about. It will save you a lot of time if you know what it can be used for.

The video tutorial demonstrates how to add an event to an animation in Unity to trigger an action in the game at a specific point during the animation. The example used is mining a rock in a game, where the event is added to the mining animation and triggers the resource pickup once the pickaxe hits the rock. The tutorial shows how to add an event in the animation and how to trigger it using visual scripting with a string input. The video explains that there are other ways to approach the problem, but this method is useful and easy to implement.

Smart Penguins occasionally links to goods or services offered by vendors. Some of these may be affiliate links, meaning we earn a small commission if items are purchased. As Amazon Associate, we earn from qualifying purchases.

Рекомендации по теме
Комментарии
Автор

Only video I found that helped with imported animations and not just made in unity animations. Your a lifesaver!

jadenmartin
Автор

Can we use this event for boss hit??
And what is proper way or any suggestion to create script for boss??

prasadsanas
Автор

How would you do it using C# script instead of Script graph for older Unity versions?

MatthewLim-ej
Автор

How do I add this functions by scripting?? I don't use blueprints :P

paschee
Автор

Sometimes the animation event doesn't fire. know why?

PeterMilko
Автор

Very helpful. One question, do you have a video on how you set up the animations to 'play' when being idle to walking/running? I've been looking everywhere but all the tutorials lead to C# or some visual scripting tutorials skip through some information. Thanks in advance for the reply

iamonly
Автор

sometimes unity triggers my event, sometimes it doesnt, unity's animator is a mess...

karacter
Автор

your using an outdated version of unity, tutorial is deprecated ⚠️

sadravin