Open rexrainbow opened 1 month ago
Hi @rexrainbow.
Instead of:
pipeline: { TestPostFX }
Try this:
pipeline: TestPostFX
The pipeline
property requires either:
Phaser.Types.Core.PipelineConfig
object that requires these properties:
name
{string}pipeline
{Phaser.Renderer.WebGL.WebGLPipeline}or:
a Phaser.Renderer.WebGL.WebGLPipeline
class.
With pipeline: { TestPostFX }
it assumes you are passing an object to the pipeline
property and not a Phaser.Renderer.WebGL.WebGLPipeline
type as what is intended.
Let me know if that helps.
That pipeline
parameter could register multiple WebGLPipeline classes, so that it might be a list or a dictionary.
Phaser.Renderer.WebGL.WebGLPipeline[]
, or{[name: string]: Phaser.Renderer.WebGL.WebGLPipeline}
Version
Description
Test code registers a post fx pipeline in game config.
Typescript report a type bug :
It seems that there has type incompatible in game config's
pipeline
parameter.