API

Class ParticleSystemSet

Represents a set of particle systems working together to create a specific effect

Implements

Index
systems: IParticleSystem[] = []

Gets the particle system list

BaseAssetsUrl: string = "https://assets.babylonjs.com/particles"

Gets or sets base Assets URL Only used when parsing particle systems from JSON, not part of the core assets

  • Serialize the set into a JSON compatible object

    Parameters

    • serializeTexture: boolean = false

      defines if the texture must be serialized as well

    Returns any

    a JSON compatible representation of the set

  • Creates a new emitter mesh as a sphere

    Parameters

    • options: { color: Color3; diameter: number; segments: number }

      defines the options used to create the sphere

    • renderingGroupId: number

      defines the renderingGroupId to use for the sphere

    • scene: Scene

      defines the hosting scene

    Returns void

  • Parse a new ParticleSystemSet from a serialized source

    Parameters

    • data: any

      defines a JSON compatible representation of the set

    • scene: Scene

      defines the hosting scene

    • gpu: boolean = false

      defines if we want GPU particles or CPU particles

    • Optionalcapacity: number

      defines the system capacity (if null or undefined the sotred capacity will be used)

    Returns ParticleSystemSet

    a new ParticleSystemSet