Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to change particle system rate over time unity

//objectName.GetComponent<ParticleSystem>().emission.rateOverTime = 2.0f;
//This doesn't work, so you need to seperate it into a few lines.
ParticleSystem particleSystem = objectName.GetComponent<ParticleSystem>();
var emission = particleSystem.emission;
emission.rateOverTime = 2.0f;
Source by # #
 
PREVIOUS NEXT
Tagged: #change #particle #system #rate #time #unity
ADD COMMENT
Topic
Name
6+3 =