Cache#getFrameData()

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)
doc_phaser
2017-02-14 10:40:16
Comments
Leave a Comment

Please login to continue.