Cache#getFrameCount()

getFrameCount(key, cache) → {number}

Get the total number of frames contained in the FrameData object specified by the given key.

Parameters
Name Type Argument Default Description
key string

Asset key of the FrameData you want.

cache integer <optional>
Phaser.Cache.IMAGE

The cache to search for the item in.

Returns
number -

Then number of frames. 0 if the image is not found.

Source code: loader/Cache.js (Line 1458)
doc_phaser
2017-02-14 10:40:15
Comments
Leave a Comment

Please login to continue.