It is easy!
Just add a Component to a new Gameobject.
Select KSP/KSP Particle Emitter,and we usually change the Gameobject's name to “muzzleTransform”.
Then,set parameters and select a corresponding Material.(the Material should use KSP/Particle)
Enjoy