Phaser API Documentation

  Version: 
getFrameNames([includeBase])

Description:

Returns an array with all of the names of the Frames in this Texture.

Useful if you want to randomly assign a Frame to a Game Object, as you can pick a random element from the returned array.

Parameters:

name type arguments Default description
includeBase boolean <optional> false

Include the __BASE Frame in the output array?

Returns:
Description:

An array of all Frame names in this Texture.

Type:
  • Array.<string>
Since: 3.0.0
Source: src/textures/Texture.js (Line 320)