Class ParticleSystemSet
Implements
Constructors
constructor
-
Returns ParticleSystemSet
Properties
systems
Gets the particle system list
StaticBase Assets Url
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
Accessors
emitter Node
-
Gets or sets the emitter node used with this set
Returns Nullable<AbstractMesh | Vector3>
-
Parameters
- value: Nullable<AbstractMesh | Vector3>
Returns void
Methods
dispose
-
Release all associated resources
Returns void
serialize
-
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
- serializeTexture: boolean = false
set Emitter As Sphere
start
-
Starts all particle systems of the set
Parameters
Optionalemitter: AbstractMeshdefines an optional mesh to use as emitter for the particle systems
Returns void
StaticParse
-
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: numberdefines the system capacity (if null or undefined the sotred capacity will be used)
Returns ParticleSystemSet
a new ParticleSystemSet
- data: any
Represents a set of particle systems working together to create a specific effect