Color myColor; var particlesMain = gameObject.GetComponent<ParticleSystem>().main; particlesMain.startColor = myColor;