Phaser API Documentation

  Version: 
<protected> load(key)

Description:

Internal method used to load an animation into this component.

Parameters:

name type description
key string | Phaser.Types.Animations.PlayAnimationConfig

The string-based key of the animation to play, or a PlayAnimationConfig object.

Returns:
Description:

The Game Object that owns this Animation Component.

Since: 3.0.0