Phaser API Documentation

  Version: 
preBatch([gameObject])

Description:

This method is called as a result of the WebGLPipeline.batchQuad method, right before a quad belonging to a Game Object is about to be added to the batch. When this is called, the renderer has just performed a flush. It will bind the current render target, if any are set and finally call the onPreBatch hook.

Parameters:

name type arguments description
gameObject Phaser.GameObjects.GameObject | Phaser.Cameras.Scene2D.Camera <optional>

The Game Object or Camera that invoked this pipeline, if any.

Returns:
Description:

This WebGLPipeline instance.

Examples:
Since: 3.50.0