You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
UXVirtual
changed the title
Expose Emitter.disable() and Emitter.enable()
Expose SPE.Emitter.disable() and SPE.Emitter.enable()
May 15, 2017
joshmarinacci
added a commit
to joshmarinacci/aframe-particle-system-component
that referenced
this issue
Nov 30, 2017
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?
The text was updated successfully, but these errors were encountered: