Phaser API Documentation

  Version: 
getAnimsFromTexture(key)

Description:

Returns an array of all Animation keys that are using the given Texture. Only Animations that have at least one AnimationFrame entry using this texture will be included in the result.

Parameters:

name type description
key string | Phaser.Textures.Texture | Phaser.Textures.Frame

The unique string-based key of the Texture, or a Texture, or Frame instance.

Returns:
Description:

An array of Animation keys that feature the given Texture.

Type:
  • Array.<string>
Since: 3.60.0