Phaser API Documentation

  Version: 
onFXCopy(pipeline)

Description:

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

This happens when the pipeline uses its copySprite method.

It's invoked prior to the copy, 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