Phaser API Documentation

  Version: 
onFX(pipeline)

Description:

This callback is invoked when this Game Object is rendered by a PreFX Pipeline.

This happens when the pipeline uses its drawSprite method.

It's invoked prior to the draw, allowing you to set shader uniforms, etc on the pipeline.

Parameters:

name type description
pipeline Phaser.Renderer.WebGL.Pipelines.PreFXPipeline

The PreFX Pipeline that invoked this callback.

Since: 3.60.0