Cache#hasFrameData()

hasFrameData(key, cache) → {boolean}

Check if the FrameData for the given key exists in the Image Cache.

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
boolean -

True if the given key has frameData in the cache, otherwise false.

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

Please login to continue.