Phaser API Documentation

  Version: 
getPostPipeline(pipeline, [gameObject])

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.

Returns:
Description:

The pipeline instance, or undefined if not found.

Examples:
Since: 3.50.0