Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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
Source by blogs.unity3d.com #
 
PREVIOUS NEXT
Tagged: #unity #set #particle #properties #script
ADD COMMENT
Topic
Name
8+4 =