Phaser API Documentation

  Version: 
endCapture()

Description:

Unbinds the WebGL Renderers Render Target and returns it, stopping any further content being drawn to it.

If the viewport or scissors were modified during the capture, you should reset them by calling resetViewport and resetScissor accordingly.

Returns:
Description:

A reference to the WebGL Renderer Render Target.

Examples:
Since: 3.50.0