bma73/revolt-fx

Can not init the particles

Opened this issue · 0 comments

@bma73
It seems like somethings went wrong when initing the emitter.
const emitter = fx.getParticleEmitter('circle-glow');
console.log("emitter: ", emitter); //=> data is nulls
The log return:
emitter: e {data: _undefined_, componentId: 0, exhausted: false, completed: false, name: 'circle-glow', …}
although I see the all the properties of the particles are still read by the function, but I think the emitter.data caused not playing particles.
Meanwhile, could you give me more informations for this const additionalAssets = ['assets/rfx-examples.json']; please. When i downloaded from the editor, there were 2 json and 1 spritesheet png files.