Answers for "unity set particle properties through script"

C#
0

unity set particle properties through script

//Example to set a Particle Systems Emission Rate over Time.

// Get the emission module.
var emissionModule = GetComponent<ParticleSystem>().emission;

// Enable it (if its not) and set a value
emissionModule.enabled = true;
emissionModule.rateOverTime = 20;

//V Check source for more examples V
Posted by: Guest on February-12-2021

Code answers related to "unity set particle properties through script"

C# Answers by Framework

Browse Popular Code Answers by Language