Adds a Render Texture to the Texture Manager using the given key. This allows you to then use the Render Texture as a normal texture for texture based Game Objects like Sprites.
name | type | description |
---|---|---|
key | string |
The unique string-based key of the Texture. |
renderTexture | Phaser.GameObjects.RenderTexture |
The source Render Texture. |
The Texture that was created, or null
if the key is already in use.