Complete the code to start the fire particle effect.
ParticleSystem fireEffect = GetComponent<ParticleSystem>();
fireEffect.[1]();The Play() method starts the particle system, which is needed to show the fire effect.
Complete the code to change the smoke particle system's emission rate.
var emission = smokeEffect.emission; emission.[1].constant = 50f;
rate directly causes errors because it's inside the emission module.The rateOverTime property controls how many particles are emitted per second, which changes the smoke density.
Fix the error in the sparkle effect color change code.
var main = sparkleEffect.[1];
main.startColor = Color.yellow;emission or shape modules will cause errors when setting startColor.The main module controls main settings like start color. Accessing main is required to change startColor.
Fill both blanks to create a sparkle effect that plays and stops correctly.
ParticleSystem sparkle = GetComponent<ParticleSystem>(); sparkle.[1](); sparkle.[2]();
First, Play() starts the sparkle effect. Then, Stop() stops it when needed.
Fill all three blanks to create a dictionary of effects with their names and play the fire effect.
var effects = new Dictionary<string, ParticleSystem> {
{"fire", [1],
{"smoke", [2],
{"sparkle", [3]
};
effects["fire"].Play();Each dictionary entry uses the correct ParticleSystem variable for fire, smoke, and sparkle effects.