Skip to content

Repository files navigation

Triple A Studios - Animation Events

Animation Events for Unity 6 and above. Uses State-Machine behaviour to fire custom animation events rather than using animation events directly to give more control over the events.


Installation

Method 1 (Recommended):

Using Git Url:

  1. Copy the git URL.
  2. Open the package manager window in your unity project.
  3. Click on the little "+" icon in the top left corner and from the dropdown, select "Add package from git URL".
  4. Paste the URL, click "Add" button.

Method 2 (Not Recommended):

Cloning the git repository directly(gives access unreleased features and access to the branches in development)

  1. Copy the git URL.
  2. Clone the repository directly into your project.

Tutorial Video

Watch the video


API Reference Documentation

Full docs website coming soon. Quick reference below to get started.

1. Add the state behaviour

On the Animator state where you want an event to fire, add AnimationEventStateBehaviour (Add Behaviour in the Animator window).

Field Description
eventName Name to match against a receiver's event list. Must match exactly (case-sensitive).
triggerTime Normalized time (0–1) within the state at which the event fires.

Fires once per state-enter (loop-safe — won't re-fire every loop of a looping animation).

2. Create a receiver

Subclass AnimationEventReceiver and put it on the same GameObject as the Animator:

using TripleA.AnimationEvents;

public class CharacterEventReceiver : AnimationEventReceiver
{
}

In the Inspector, add entries to its event list — each entry has an eventName (matching the state behaviour above) and a UnityEvent to invoke.

3. Preview in editor

Select the AnimationEventStateBehaviour in the Animator state, then use the Preview button in its Inspector to scrub to triggerTime on the selected GameObject without entering Play mode.

How-To Video

Watch the how-to video


Change Log

View Changelog here.


Issues

No known issues as of 7 August 2026.


Contributing guidelines:

If you wish to contribute to the project, please follow the general contribution guidelines as outlined below:

  • Fork the repository and create a branch from the main branch
  • Make your contributions and commit your changes to your branch
  • Submit a pull request detailing the changes made
  • Wait for your changes to be reviewed and merged

License information

This project is licensed under the MIT license, which can be found on the GitHub repository. The MIT license allows for the use, modification, and distribution of the code for both commercial and non-commercial purposes.


Contact information

For any bug reports, issues, or help regarding the setup of the project, please feel free to contact me on LinkedIn, Instagram @oily.oli, or mail me at ali.qadir.007@outlook.com. My contact information can be found on my GitHub profile also. Alternatively you can leave comments on my itch page too.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages