Phaser API Documentation

  Version: 
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Event: BEFORE_FLUSH
Phaser.Renderer.WebGL.Pipelines.Events.BEFORE_FLUSH
BEFORE_FLUSH

Description:

The WebGLPipeline Before Flush Event.

This event is dispatched by a WebGLPipeline right before it is about to flush and issue a bufferData and drawArrays command.

Parameters:

name type description
pipeline Phaser.Renderer.WebGL.WebGLPipeline

The pipeline that is about to flush.

isPostFlush boolean

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