Cache#getFrame()

getFrame(key, cache) → {Phaser.Frame}

Get a single frame by key. You'd only do this to get the default Frame created for a non-atlas/spritesheet image.

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

Please login to continue.