PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

Rate

ParticleEmitter

float

The Rate property determines how many particles are ParticleEmitter/Emit emit per second while the ParticleEmitter is ParticleEmitter/Enabled. It is the inverse of frequency - a Rate of 5 means that a particle will be emit every 1/5 = 0.2 seconds. When changed, this property will have no affect on any already emit particles.

it is important to pick a sensible ParticleEmitter/Lifetime and Rate so that you don’t have too many particles being rendered at once. Long lifetimes and high emission rates are a quick way to cause performance issues. If you need many particles, pick a balance of lifetime and rate. To instantly remove any presently emit particles (perhaps ones with absurdly long lifetimes), you can call ParticleEmitter/Clear.


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