Skip to content

Commit 6f7463f

Browse files
Particle Emitter Manager in Container
Added Alpha and ScrollFactor Mixin to Particle Emitter Manager otherwise it crashes when added to the Container.
1 parent 594fc3e commit 6f7463f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/gameobjects/particles/ParticleEmitterManager.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ var Render = require('./ParticleManagerRender');
2222
* @constructor
2323
* @since 3.0.0
2424
*
25+
* @extends Phaser.GameObjects.Particles.Components.Alpha
2526
* @extends Phaser.GameObjects.Particles.Components.Depth
26-
* @extends Phaser.GameObjects.Particles.Components.Visible
2727
* @extends Phaser.GameObjects.Particles.Components.Pipeline
28+
* @extends Phaser.GameObjects.Particles.Components.ScrollFactor
29+
* @extends Phaser.GameObjects.Particles.Components.Visible
2830
*
2931
* @param {Phaser.Scene} scene - The Scene to which this Emitter Manager belongs.
3032
* @param {string} texture - The key of the Texture this Emitter Manager will use to render particles, as stored in the Texture Manager.
@@ -36,9 +38,11 @@ var ParticleEmitterManager = new Class({
3638
Extends: GameObject,
3739

3840
Mixins: [
41+
Components.Alpha,
3942
Components.Depth,
40-
Components.Visible,
4143
Components.Pipeline,
44+
Components.ScrollFactor,
45+
Components.Visible,
4246
Render
4347
],
4448

0 commit comments

Comments
 (0)