Consider this Unity C# script snippet that modifies a Particle System's emission rate over time. What will be the emission rate after 3 seconds?
using UnityEngine; public class ParticleEmissionTest : MonoBehaviour { public ParticleSystem ps; void Start() { var emission = ps.emission; emission.rateOverTime = 10f; } void Update() { var emission = ps.emission; emission.rateOverTime = 10f + Time.time * 5f; } }
Remember that Time.time gives the time in seconds since the game started.
The emission rate starts at 10 and increases by 5 every second. After 3 seconds, it is 10 + 3*5 = 25.
In Unity's Particle System component, which property lets you change the shape from which particles are emitted?
Think about the module that defines the geometry of emission.
The shape.shapeType property controls the emission shape like cone, sphere, or box.
Look at this code snippet. The Particle System does not emit any particles when the game runs. What is the cause?
using UnityEngine;
public class ParticleDebug : MonoBehaviour
{
public ParticleSystem ps;
void Start()
{
var emission = ps.emission;
emission.enabled = false;
ps.Play();
}
}Check the emission module's enabled state.
Disabling emission stops particles from spawning even if Play() is called.
Choose the correct code snippet to set the start color of a Particle System to red.
The main module is a struct; you must assign its properties correctly.
You must get the main module, then assign startColor using a new Color instance. Option A correctly assigns startColor. Option A misses that main is a struct and needs a local variable, but the new Color instance is correct. Option A and C are incorrect because startColor is not a direct property of ParticleSystem.
You want particles to start small and grow bigger smoothly as they live. Which code snippet achieves this effect?
Think about the size curve from 1 to 2 over the particle lifetime.
Option D enables size over lifetime and sets a linear curve from 1 to 2, making particles grow smoothly. Other options have wrong curve values or missing enabling.