new RenderTexture(game, key, width, height)
A RenderTexture is a special texture that allows any displayObject to be rendered to it.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
game |
Phaser.Game | Current game instance. |
||
key |
string | Internal Phaser reference key for the render texture. |
||
width |
number |
<optional> |
100 | The width of the render texture. |
height |
number |
<optional> |
100 | The height of the render texture. |
- Source:
Members
-
game
-
- Source:
Properties:
Name Type Description game
Phaser.Game A reference to the currently running game.
-
key
-
- Source:
Properties:
Name Type Description key
string The key of the RenderTexture in the Cache, if stored there.
-
type
-
- Source:
Properties:
Name Type Description type
number Base Phaser object type.