Complete the code to enable the emission module of a ParticleSystem.
var emission = particleSystem.emission;
emission.[1] = true;The enabled property turns the emission module on or off.
Complete the code to set the emission rate over time to 10 particles per second.
var emission = particleSystem.emission;
emission.rateOverTime = [1]f;The rateOverTime property controls how many particles are emitted each second. Setting it to 10 means 10 particles per second.
Fix the error in the code to set the shape module's angle to 25 degrees.
var shape = particleSystem.[1]; shape.angle = 25f;
The shape module controls the shape of the particle emission. Access it via particleSystem.shape.
Fill both blanks to set the shape module's radius to 3 and enable it.
var shape = particleSystem.[1]; shape.[2] = 3f;
First, access the shape module. Then set its radius property to 3.
Fill all three blanks to enable emission, set rate over time to 15, and set shape angle to 45.
var emission = particleSystem.emission; emission.[1] = true; emission.rateOverTime = [2]f; var shape = particleSystem.[3]; shape.angle = 45f;
Enable emission by setting enabled to true, set rateOverTime to 15, and access the shape module to set its angle.