Renders this Game Object with the WebGL Renderer to the given Camera. The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera. This method should not be called directly. It is a utility function of the Render module.
name | type | description |
---|---|---|
renderer | Phaser.Renderer.WebGL.WebGLRenderer |
A reference to the current active WebGL renderer. |
layer | Phaser.GameObjects.Layer |
The Game Object being rendered in this call. |
camera | Phaser.Cameras.Scene2D.Camera |
The Camera that is rendering the Game Object. |