ParticleComponent

@MainThread
class ParticleComponent : Component

A Component that is used to play particle effects in the scene.

Particle effects, such as fireworks, explosions, and other visual effects, can be created in the Spatial Editor. When a node containing particle effects is loaded from an AssetBundle, its corresponding entity will automatically have a ParticleComponent added to it.

At runtime, you can modify the exposed properties of an existing ParticleComponent, but cannot create new instances. Neither copy construction nor manual instantiation is supported.

Properties

Link copied to clipboard

The strength of the attractor effect. Only available when isAttractorEnabled is true.

Link copied to clipboard
var isAttractorEnabled: Boolean

Whether the attractor effect is enabled.

Link copied to clipboard
var isEmitting: Boolean

Whether the emitter is emitting. This property is used to activate or deactivate the emitting of particles.

Link copied to clipboard
var isVortexEnabled: Boolean

Whether the vortex effect is enabled.

Link copied to clipboard

The initial color of particles at spawn.

Link copied to clipboard
var vortexStrength: Float

The strength of the vortex effect. Only available when isVortexEnabled is true.

Functions

Link copied to clipboard
open override fun clone(): Component

Creates and returns a copy of this Component instance.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String