Particle Emitter from moving object to cursor location

The emitter is currently attached to a parent and it emits while the left mouse button or space bar are pressed down. I would like to emit the particles towards the mouse/cursor location on screen; however, at the moment, the particles move straight up vertically.

How can I aim the particles towards the cursor dynamically?

There’s an initial velocity property in the particle emitter. Set it to point towards the mouse cursor’s position in your script.