Is there a way I get the CustomParticleEmitter via NPM yet?

I think the title pretty much sums up the question. I’m working in Typescript with Webpack, and tried to use this feature. I discovered that it is new. Too new.

Hello @IIerpos,

When you are looking for a babylonjs class you want to add in your project, I advise you to check the Github repo
Here you can search for a file which have your class so that you have to path to import it.

For instance, if you do “find file” action in github you can find the class CustomParticleEmitter here: Babylon.js/customParticleEmitter.ts at master · BabylonJS/Babylon.js · GitHub

So to import it it will be:
import { CustomParticleEmitter } from "@babylonjs/core/Particles/EmitterTypes/customParticleEmitter"

Hope it answers to your question :wink:

2 Likes