PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

Enabled

ParticleEmitter

bool

The Enabled property determines whether a ParticleEmitter should emit partciles according to its ParticleEmitter/Rate. Setting Enabled to false will halt further particles from spawning; any existing particles will remain until they expire. This property is useful when you have a pre-made particle effect that you want to remain disabled until you need it to emit particles.

If you want no particles to render, you should call ParticleEmitter/Clear to clear any existing particles. You can use ParticleEmitter/Emit on disabled ParticleEmitters and they will still emit and render particles.


Code Samples


Creating a Particle Emitter from Scratch

This rather lengthy code sample shows how every property of a ParticleEmitter can be set, including DataType/NumberRange, DataType/NumberSequence and DataType/ColorSequence properties. Below is how the ParticleEmitter should after every property is set. Try playing around with the different properties to customize how the effect looks!

The final product