Phaser API Documentation

  Version: 
getPostPipeline(pipeline, [gameObject], [config])

Description:

Returns a new instance of the post pipeline based on the given name, or class.

If no instance, or matching name, exists in this manager, it returns undefined.

Parameters:

name type arguments description
pipeline string | function | Phaser.Renderer.WebGL.Pipelines.PostFXPipeline

Either the string-based name of the pipeline to get, or a pipeline instance, or class to look-up.

gameObject Phaser.GameObjects.GameObject <optional>

If this post pipeline is being installed into a Game Object or Camera, this is a reference to it.

config object <optional>

Optional pipeline data object that is set in to the postPipelineData property of this Game Object.

Returns:
Description:

The pipeline instance, or undefined if not found.

Since: 3.50.0