getFrameByIndex(key, index, cache) → {Phaser.Frame}
Get a single frame out of a frameData set by key.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
key | string | Asset key of the frame data to retrieve from the Cache. | ||
index | number | The index of the frame you want to get. | ||
cache | integer | <optional> | Phaser.Cache.IMAGE | The cache to search. One of the Cache consts such as |
Returns
The frame object.
- Source code: loader/Cache.js (Line 1536)
Please login to continue.