getFrameData(key, cache) → {Phaser.FrameData}
Gets a Phaser.FrameData object from the Image Cache.
The object is looked-up based on the key given.
Note: If the object cannot be found a console.warn
message is displayed.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
key | string | Asset key of the frame data to retrieve from the Cache. | ||
cache | integer | <optional> | Phaser.Cache.IMAGE | The cache to search for the item in. |
Returns
The frame data.
- Source code: loader/Cache.js (Line 1481)
Please login to continue.