ParticleSystem myParticleSystem; myParticleSystem.GetComponent<ParticleSystemRenderer>().sortingOrder = 0;