• Stars
    star
    169
  • Rank 223,436 (Top 5 %)
  • Language
    C#
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

UnityEvents triggered by states inside an Animator. Easy to use and performant.

Unity Animator Events

This asset provides the ability to call UnityEvents stored in a script added next to an Animator from its AnimatorController's states.

This can be useful for things from easily adding events like footsteps to controlling how a character works by using the Animator like a state machine, blocking and unblocking the character's input, enabling and disabling rootmotion at certain points and much more.

This asset was later rewritten and published to the asset store with more features:

Made for and heavily used in the game Genokids https://genokids.com/

How to use

First, add the component AnimatorEvent to the GameObject that has the Animator that has the AnimatorController in question, and add events to it.

Adding Events

Then, navigate through the AnimatorController and add the script AnimatorEventSMB to the states that will call the previously defined events.

Calling Events

The events can (only) be triggered by 5 type of triggers:

  • Entering a state, just when the transition to it starts
  • Entering a state, just when the transition to it ends
  • Exiting a state, just when the transition from it starts
  • Exiting a state, just when the transition from it ends
  • At a specific point in time when playing a state. It can be repeated every time the sate loops. It can also fire the trigger in case the animator leaves the state before the specific point in time.

For the last type of trigger, a slider is provided to help pinpoint the exact time for the trigger to happen by previsualizing the animation. This feature doesn't work with blendtrees, only showing the preview for the first animation without blending it with the others.

You can change the name of an event at any point because it is referenced by an integer ID, not by its name. You can also type the character '/' in the event name to organize the events in a hierarchy like folders, by adding as many / as needed.

More Repositories

1

DragAndDropFromField

Allows Unity to start a drag and drop operation from an object field
C#
59
star
2

UnityAnimationWindow

Would you like to have some simple extra features in the Animation Window? Do you use Unity 2019? Then this is for you. Used in Genokids
C#
48
star
3

Descargavideos

All descargavídeos source code.
PHP
40
star
4

M3U8-Downloader

Programa para facilitar la descarga de enlaces M3U8
C#
26
star
5

FixPackageManagerSeeAllVersions

Allows viewing the button `See All Versions` in the Package Manager, which was hidden after Unity 2021 by design.
C#
25
star
6

stun

STUN implementation for C#
C#
24
star
7

Fake-hanging-chains

Fake, fast chains for Unity that can be animated ingame with false simple physics. If the chain is not going to move ingame you can merge all the generated links to have only one mesh instead of multiple copies to save drawcalls
C#
24
star
8

UnityHierarchyOnOverHelper

Highlight objects in Unity when the mouse overs them in the Hierarchy window
C#
16
star
9

No-gc-sockets

Small library to send and receive using sockets without allocating garbage
C#
12
star
10

Unity-2021-with-old-toolbar

Bring back the old toolbar that was removed on Unity 2021 to help those who prefer that workflow.
C#
10
star
11

Custom-Blender-Unity-Import-Settings

Indicate a per-project custom Unity-BlenderToFBX.py. A custom one is included here that fixes importing no UV by using the default export settings from Blender instead of custom ones that sometimes fail for some misic reason.
Python
10
star
12

BBuffer

Bit/byte manipulation and bit/byte buffer tools for C#, oriented for networking needs
C#
9
star
13

F4M-Downloader

Programa para facilitar la descarga de "f4m"
C#
8
star
14

sctp4cs

SCTP implementation for C#
C#
6
star
15

WhatUsesThisInScene

Search where a component is used in the scene. Inspired by https://github.com/Facepunch/WhatUsesThis
C#
6
star
16

Annotations

Annotations for GameObjects in Unity
C#
4
star
17

Scheduler

C# Update Manager and Scheduler
C#
4
star
18

AdobeHDS

C#
4
star
19

UnityFixSlowSceneViewMovement

If the scene camera keeps moving after you released all keyboard keys, this is a fix for you. In fact, it is a fix for everybody as this also makes Unity run faster when moving in the scene.
C#
4
star
20

RTMP-Downloader

Programa para facilitar el uso de RTMPDump
C#
3
star
21

HashUtils

Optimized hash scripts that are shared between other libraries
C#
2
star
22

Fix32

C# Fixed point math library that uses an enum instead of an struct to store the integer to gain performance
C#
2
star
23

inventario

PHP
1
star
24

FixAnimationWindowSlow

C#
1
star
25

Brisca-online

Brisa online (php + js). IA + multiplayer
PHP
1
star
26

AshNodeEditor

Node editor intented to be used for AI and to be performant. Unfinished
C#
1
star
27

CoolStartNet

Página principal customizable multiusuario.
JavaScript
1
star