Phaser API Documentation

  Version: 
GenerateFrameNames
Properties:
name type arguments Default description
prefix string <optional> ''

The string to append to every resulting frame name if using a range or an array of frames.

start number <optional> 0

If frames is not provided, the number of the first frame to return.

end number <optional> 0

If frames is not provided, the number of the last frame to return.

suffix string <optional> ''

The string to append to every resulting frame name if using a range or an array of frames.

zeroPad number <optional> 0

The minimum expected lengths of each resulting frame's number. Numbers will be left-padded with zeroes until they are this long, then prepended and appended to create the resulting frame name.

outputArray Array.<Phaser.Types.Animations.AnimationFrame> <optional> []

The array to append the created configuration objects to.

frames boolean | Array.<number> <optional> false

If provided as an array, the range defined by start and end will be ignored and these frame numbers will be used.

Type:
object
Since: 3.0.0