Phaser API Documentation

  Version: 
setAutoResize(autoResize)

Description:

Sets if this Render Target should automatically resize when the WebGL Renderer emits a resize event.

Parameters:

name type description
autoResize boolean

Automatically resize this Render Target when the WebGL Renderer resizes?

Returns:
Description:

This RenderTarget instance.

Examples:
Since: 3.50.0