Phaser API Documentation

  Version: 
autoClear: boolean

Description:

Controls if this Render Target is automatically cleared (via gl.COLOR_BUFFER_BIT) during the RenderTarget.bind method.

If you need more control over how, or if, the target is cleared, you can disable this via the config on creation, or even toggle it directly at runtime.

Type:
boolean
Since: 3.50.0