unity set color of particle system code example Example: unity particle system color Color myColor; gameObject.GetComponent<ParticleSystem>().startColor = myColor;