Phaser API Documentation

  Version: 
Event: ADD_ANIMATION
Phaser.Animations.Events.ADD_ANIMATION
ADD_ANIMATION

Description:

The Add Animation Event.

This event is dispatched when a new animation is added to the global Animation Manager.

This can happen either as a result of an animation instance being added to the Animation Manager, or the Animation Manager creating a new animation directly.

Parameters:

name type description
key string

The key of the Animation that was added to the global Animation Manager.

animation Phaser.Animations.Animation

An instance of the newly created Animation.

Since: 3.0.0