Phaser API Documentation

  Version: 
onBeforeFlush([isPostFlush])

Description:

By default this is an empty method hook that you can override and use in your own custom pipelines.

This method is called every time this pipeline is asked to flush its batch.

It is called immediately before the gl.bufferData and gl.drawArrays calls are made, so you can perform any final pre-render modifications. To apply changes post-render, see onAfterFlush.

Parameters:

name type arguments Default description
isPostFlush boolean <optional> false

Was this flush invoked as part of a post-process, or not?

Examples:
Since: 3.50.0