Consider a particle system with a sub-emitter configured to emit particles on death of the main particles. What will be the total number of particles emitted if the main system emits 5 particles and each sub-emitter emits 3 particles on death?
using UnityEngine; public class ParticleTest : MonoBehaviour { public ParticleSystem mainSystem; public ParticleSystem subEmitter; void Start() { mainSystem.Emit(5); } }
Remember each main particle triggers the sub-emitter on death, emitting 3 particles each.
The main system emits 5 particles. Each particle, when it dies, triggers the sub-emitter to emit 3 particles. So total particles = 5 (main) + 5*3 (sub) = 20.
Choose the correct description of sub-emitters in Unity's particle system.
Think about how sub-emitters react to particle events.
Sub-emitters are particle systems triggered by events such as birth, collision, or death of particles in the main system. They are not permanent merges or color changers.
Given this setup, the sub-emitter is configured to emit on collision, but no particles appear. What is the most likely cause?
ParticleSystem subEmitter;
void Setup() {
var subEmitters = mainSystem.subEmitters;
subEmitters.AddSubEmitter(subEmitter, ParticleSystemSubEmitterType.Collision, ParticleSystemSubEmitterProperties.InheritNothing);
}
// mainSystem has collision module enabled with collision events enabled.Check the main system's collision settings.
For sub-emitters to emit on collision, the main system's collision module must be enabled and configured to send collision events. Without this, the sub-emitter won't trigger.
Which option contains the correct syntax to add a sub-emitter to a particle system?
var subEmitters = mainSystem.subEmitters; subEmitters.AddSubEmitter(subEmitter, ParticleSystemSubEmitterType.Death, ParticleSystemSubEmitterProperties.InheritColor);
Look carefully at commas and parentheses.
Option C uses correct commas and parentheses. Options B, C, and D have missing commas, wrong semicolons, or missing closing parentheses causing syntax errors.
You want a particle system where the main system emits particles, each of which triggers a sub-emitter on death, and that sub-emitter also triggers another sub-emitter on death. How do you set this up correctly?
Think about how sub-emitters can themselves have sub-emitters.
To create a chain reaction, you add a sub-emitter to the main system, then add another sub-emitter to that sub-emitter's particle system. Each triggers on death, creating a chain.