Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ParticleSystem.Burst Constructor

Switch to Manual
public ParticleSystem.Burst(float _time, short _count);
public ParticleSystem.Burst(float _time, short _minCount, short _maxCount);
public ParticleSystem.Burst(float _time, short _minCount, short _maxCount, int _cycleCount, float _repeatInterval);

Parameters

_time Time to emit the burst.
_minCount Minimum number of particles to emit.
_maxCount Maximum number of particles to emit.
_count Number of particles to emit.
_cycleCount Number of times to play the burst. (0 means indefinitely).
_repeatInterval How often to repeat the burst, in seconds.

Description

Construct a new Burst with a time and count.

See Also: ParticleSystem.emissionModule.SetBursts, ParticleSystem.emissionModule.GetBursts.

Did you find this page useful? Please give it a rating: