I'd be great to expose the disable() and enable() methods on SPE.Emitter as component methods. Currently I have to do the following if I want to start / stop the emitter:
var particleEntity = document.querySelector('[particle-system]');
particleEntity.components['particle-system'].particleGroup.emitters[0].disable();
particleEntity.components['particle-system'].particleGroup.emitters[0].enable();
Having the above would allow the component to be used more easily for temporary effects such as object collisions / teleport effects etc.
I'm assuming this component only ever creates one particle emitter?
I'd be great to expose the
disable()
andenable()
methods onSPE.Emitter
as component methods. Currently I have to do the following if I want to start / stop the emitter:Having the above would allow the component to be used more easily for temporary effects such as object collisions / teleport effects etc.
I'm assuming this component only ever creates one particle emitter?