All Projects → forestrf → Unityanimatorevents

forestrf / Unityanimatorevents

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

Programming Languages

csharp
926 projects

Projects that are alternatives of or similar to Unityanimatorevents

Inputsystem
An efficient and versatile input system for Unity.
Stars: ✭ 1,013 (+765.81%)
Mutual labels:  events, unity
Swissarmylib
Collection of helpful utilities we use in our Unity projects.
Stars: ✭ 154 (+31.62%)
Mutual labels:  events, unity
Cyanemu
CyanEmu is a VRChat client emulator in Unity. Includes a player controller with interact system. Works with SDK2 and SDK3.
Stars: ✭ 108 (-7.69%)
Mutual labels:  unity
Unitystyleguide
For file structure, naming conventions and other things
Stars: ✭ 115 (-1.71%)
Mutual labels:  unity
Dawnbringer Palettes
Limited color palettes by DawnBringer in various formats.
Stars: ✭ 112 (-4.27%)
Mutual labels:  unity
Entitas 2d Roguelike
Rewrite of the Unity 2D Roguelike example using the Entitas Entity Component System
Stars: ✭ 110 (-5.98%)
Mutual labels:  unity
Proccharvfx
Procedural character generation with Unity Shader Graph and VFX Graph
Stars: ✭ 114 (-2.56%)
Mutual labels:  unity
Impulse
A barebones C# bootstrap framework for building scalable projects quickly and easily in Unity.
Stars: ✭ 109 (-6.84%)
Mutual labels:  unity
Unitydecompiled
Now unnecessary, use the official code instead: https://github.com/Unity-Technologies/UnityCsReference
Stars: ✭ 1,486 (+1170.09%)
Mutual labels:  unity
Mesh Voxelization
Mesh voxelization in Unity
Stars: ✭ 112 (-4.27%)
Mutual labels:  unity
Cscore
cscore is a minimal-footprint library providing commonly used helpers & patterns for your C# projects. It can be used in both pure C# and Unity projects.
Stars: ✭ 115 (-1.71%)
Mutual labels:  unity
Self Driving Vehicle
Simulation of self-driving vehicles in Unity. This is also an implementation of the Hybrid A* pathfinding algorithm which is useful if you are interested in pathfinding for vehicles.
Stars: ✭ 112 (-4.27%)
Mutual labels:  unity
Unity
This repository contains all relevant information about Unity Container suit
Stars: ✭ 1,513 (+1193.16%)
Mutual labels:  unity
Unityelevatorcompiler
A plugin that plays elevator music while Unity compiles your code.
Stars: ✭ 114 (-2.56%)
Mutual labels:  unity
Pb stl
STL import/export for Unity, supporting both ASCII and Binary.
Stars: ✭ 108 (-7.69%)
Mutual labels:  unity
Unity3d Globe
Unity3D Implementation of Chrome Experiment WebGL Globe
Stars: ✭ 115 (-1.71%)
Mutual labels:  unity
Unlitclouds
A unity cloud shader, using vertex colors and tessellation for a simple stylized look.
Stars: ✭ 110 (-5.98%)
Mutual labels:  unity
Iframework
Simple Unity Framework
Stars: ✭ 110 (-5.98%)
Mutual labels:  unity
Otto
Otto sample project for the AI Planner
Stars: ✭ 113 (-3.42%)
Mutual labels:  unity
Awesome Upm
A curated list of awesome Git repositories for Unity that support Unity Package Manager (UPM). Feel free to add yours in!
Stars: ✭ 116 (-0.85%)
Mutual labels:  unity

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].