Unity set particle properties through script Code Example
unity set particle properties through script
//Example to set a Particle Systems Emission Rate over Time.
// Get the emission module.
var emissionModule = GetComponent().emission;
// Enable it (if its not) and set a value
emissionModule.enabled = true;
emissionModule.rateOverTime = 20;
//V Check source for more examples V