particle emitter when moving

hi, i am making a flight combat game, and i want a particle emitter to emit while my spaceship is moving. Is there any way to do that? thanx!

Create a game object and add the relevant particle components. Make that game object a child of your spaceship (either in the hierarchy, or by setting the object's transform.parent to the spaceship transform in a script).

Then position the emitter where you want it relative to the spaceship (either in the scene, or by setting transform.localPosition / transform.localRotation).