Simulate
Fast-forwards the Particle System by simulating particles over the given period of time, then pauses it.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.ParticleSystemModule
Simulate(float, bool, bool, bool)
Fast-forwards the Particle System by simulating particles over the given period of time, then pauses it.
public void Simulate(float t, bool withChildren, bool restart, bool fixedTimeStep)
Parameters
Time period in seconds to advance the ParticleSystem simulation by. If is true, the ParticleSystem will be reset to 0 time, and then advanced by this value. If is false, the ParticleSystem simulation will be advanced in time from its current state by this value.
restartrestartFast-forward all child Particle Systems as well.
Restart and start from the beginning.
Only update the system at fixed intervals, based on the value in "Fixed Time" in the Time options.
Remarks
Additional Resources: ParticleSystem.Play, ParticleSystem.Pause
Simulate(float, bool, bool)
Fast-forwards the Particle System by simulating particles over the given period of time, then pauses it.
public void Simulate(float t, bool withChildren, bool restart)
Parameters
Time period in seconds to advance the ParticleSystem simulation by. If is true, the ParticleSystem will be reset to 0 time, and then advanced by this value. If is false, the ParticleSystem simulation will be advanced in time from its current state by this value.
restartrestartFast-forward all child Particle Systems as well.
Restart and start from the beginning.
Remarks
Additional Resources: ParticleSystem.Play, ParticleSystem.Pause
Simulate(float, bool)
Fast-forwards the Particle System by simulating particles over the given period of time, then pauses it.
public void Simulate(float t, bool withChildren)
Parameters
Time period in seconds to advance the ParticleSystem simulation by. If is true, the ParticleSystem will be reset to 0 time, and then advanced by this value. If is false, the ParticleSystem simulation will be advanced in time from its current state by this value.
restartrestartFast-forward all child Particle Systems as well.
Remarks
Additional Resources: ParticleSystem.Play, ParticleSystem.Pause
Simulate(float)
Fast-forwards the Particle System by simulating particles over the given period of time, then pauses it.
public void Simulate(float t)
Parameters
Time period in seconds to advance the ParticleSystem simulation by. If is true, the ParticleSystem will be reset to 0 time, and then advanced by this value. If is false, the ParticleSystem simulation will be advanced in time from its current state by this value.
restartrestartRemarks
Additional Resources: ParticleSystem.Play, ParticleSystem.Pause