Phaser API Documentation

  Version: 
add(key, animation)

Description:

Adds an existing Animation to the Animation Manager.

Parameters:

name type description
key string

The key under which the Animation should be added. The Animation will be updated with it. Must be unique.

animation Phaser.Animations.Animation

The Animation which should be added to the Animation Manager.

Returns:
Description:

This Animation Manager.

Since: 3.0.0