Cache#getTextureFrame()

getTextureFrame(key) → {Phaser.Frame}

Get a single texture frame by key.

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

Parameters
Name Type Description
key string

The key of the asset to retrieve from the cache.

Returns

The frame data.

Source code: loader/Cache.js (Line 1121)
doc_phaser
2017-02-14 10:40:21
Comments
Leave a Comment

Please login to continue.