Cache#addRenderTexture()

addRenderTexture(key, texture)

Add a new Phaser.RenderTexture in to the cache.

Parameters
Name Type Description
key string

The key that this asset will be stored in the cache under. This should be unique within this cache.

texture Phaser.RenderTexture

The texture to use as the base of the RenderTexture.

Source code: loader/Cache.js (Line 566)
doc_phaser
2017-02-14 10:39:53
Comments
Leave a Comment

Please login to continue.