Cache#getFrameByName()

getFrameByName(key, name, 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.

name string

The name of the frame you want to get.

cache integer <optional>
Phaser.Cache.IMAGE

The cache to search. One of the Cache consts such as Phaser.Cache.IMAGE or Phaser.Cache.SOUND.

Returns

The frame object.

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

Please login to continue.