Closed rexrainbow closed 2 months 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}
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master
branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
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.