Function parseNodeParticleSetFromSnippet
-
parseNodeParticleSetFromSnippet(
engine: EngineContext,
scene: SceneContext,
snippetId: string,
options?: ParseNodeParticleOptions,
): Promise<NodeParticleSet>Parameters
- engine: EngineContext
The engine (used for texture loads).
- scene: SceneContext
The hosting scene (carried in the per-particle evaluation context).
- snippetId: string
Snippet id (e.g.
#W5054F); ignored whenoptions.jsonis provided. - options: ParseNodeParticleOptions = {}
Inline JSON, snippet server override, and emitter position.
Returns Promise<NodeParticleSet>
The built NodeParticleSet.
- engine: EngineContext
Parse a Node Particle Editor graph (from the Babylon snippet server or inline JSON) and build its runtime particle systems. Inline and network snippets automatically normalize supported graph plumbing before building. The analogue of
parseNodeMaterialFromSnippetfor particles.