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)
Please login to continue.