Skip to content

Particles

Inherits Dynamic

Particles represents a particle system that can be used to create various visual effects.

Properties

Image : ImageAsset

The image used for the particles.

Color : ColorSeries

The color gradient used for the particles.

Lifetime : NumberRange

Determines the lifetime of a particle.

Amount : number

Determines the number of particles emitted.

Gravity : number

Determines the gravity effect applied to the particles.

Shaded : boolean

Determines whether the particles are shaded.

Autoplay : boolean

Determines whether the particle system plays automatically.

Methods

Play → nil

Parameters: ``

Starts playing the particle system.

Stop → nil

Parameters: ``

Stops playing the particle system.

Emit → nil

Parameters: count [ number ]

Emits a specified number of particles immediately.