Phaser API Documentation

  Version: 
getName()

Description:

Returns the key of the animation currently loaded into this component.

Prior to Phaser 3.50 this method was called getCurrentKey.

Returns:
Description:

The key of the Animation currently loaded into this component, or an empty string if none loaded.

Type:
  • string
Since: 3.50.0