unity particle system code example
Example 1: unity's particle system
you were probably searching this because of dani
fun fact: the world was created by unity's particle system
Example 2: unity particle system color
Color myColor;
gameObject.GetComponent<ParticleSystem>().startColor = myColor;