Phaser API Documentation

  Version: 
preBatch(gameObject)

Description:

This method is called by the WebGLPipeline.batchQuad method, right before a quad belonging to a Game Object is about to be added to the batch. It causes a batch flush, then calls the preBatch method on the post-fx pipelines belonging to the Game Object.

Parameters:

name type description
gameObject Phaser.GameObjects.GameObject

The Game Object about to be batched.

Since: 3.50.0