Cache#getBaseTexture()

getBaseTexture(key, cache) → {PIXI.BaseTexture}

Gets a PIXI.BaseTexture by key from the given Cache.

Parameters
Name Type Argument Default Description
key string

Asset key of the image for which you want the BaseTexture for.

cache integer <optional>
Phaser.Cache.IMAGE

The cache to search for the item in.

Returns

The BaseTexture object.

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

Please login to continue.