How do I use gravity on particles?

Hello,

I already know how to add gravity to the particles on the y-axis but I wanna apply this to both axis using the 2D physics gravity. Basically I’m trying to make the accelerometer affect the particles. I already made an accelerometer script that changes the 2D gravity for the game and it works on rigid bodies. Is there a script that would allow gravity to the x axis on particles or something like that?

If anyone could help ill appreciate it.

ParticleSystems have Force Over Lifetime module you can use.
For more detailed control, you can modify particle velocity using GetParticles and SetParticles.

Unity 5.0: there’s a Gravity Modifier input that lets you determine the effect of world gravity on the particles

Just change it to 1 and you will have gravity
alt text