0
0
Unityframework~10 mins

Why particles create visual effects in Unity - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start the particle system.

Unity
ParticleSystem ps = GetComponent<ParticleSystem>();
ps.[1]();
Drag options to blanks, or click blank then click option'
APlay
BClear
CPause
DStop
Attempts:
3 left
💡 Hint
Common Mistakes
Using Stop() instead of Play() will not start the particles.
Pause() only pauses the system, it does not start it.
Clear() removes particles but does not start the system.
2fill in blank
medium

Complete the code to set the particle system's emission rate.

Unity
var emission = ps.emission;
emission.rateOverTime = [1]f;
Drag options to blanks, or click blank then click option'
A0
B100
C10
D1000
Attempts:
3 left
💡 Hint
Common Mistakes
Setting rate to 0 means no particles emit.
Setting rate too high can cause performance issues.
3fill in blank
hard

Fix the error in the code to change particle color.

Unity
var main = ps.main;
main.startColor = [1];
Drag options to blanks, or click blank then click option'
AColor.red
Bcolor.red
CRed
Dcolor.Red
Attempts:
3 left
💡 Hint
Common Mistakes
Using lowercase 'color' causes a compile error.
Using 'Red' without 'Color.' is undefined.
4fill in blank
hard

Fill both blanks to create a particle system that emits particles only when active and stops otherwise.

Unity
if (isActive) {
    ps.[1]();
} else {
    ps.[2]();
}
Drag options to blanks, or click blank then click option'
APlay
BStop
CPause
DClear
Attempts:
3 left
💡 Hint
Common Mistakes
Using Pause() does not fully stop emission.
Using Clear() removes particles but does not control emission.
5fill in blank
hard

Fill all three blanks to create a dictionary mapping particle names to their sizes, filtering only large particles.

Unity
var sizes = new Dictionary<string, float> {
    {"Spark", 0.5f},
    {"Flame", 1.2f},
    {"Smoke", 2.0f}
};
var largeParticles = sizes.Where(kv => kv.Value [1] [2]).ToDictionary(kv => kv.Key, kv => kv.Value [3] 1);
Drag options to blanks, or click blank then click option'
A>
B1
C+
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' filters small particles instead of large.
Using '-' instead of '+' changes the size incorrectly.