Phaser API Documentation

  Version: 
resize(width, height)

Description:

Resizes this Render Target.

Deletes both the frame buffer and texture, if they exist and then re-creates them using the new sizes.

This method is called automatically by the pipeline during its resize handler.

Parameters:

name type description
width number

The new width of this Render Target.

height number

The new height of this Render Target.

Returns:
Description:

This RenderTarget instance.

Since: 3.50.0