Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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
restart
is true, the ParticleSystem will be reset to 0 time, and then advanced by this value. If
restart
is false, the ParticleSystem simulation will be advanced in time from its current state by this value.

withChildren

Fast-forward all child Particle Systems as well.

restart

Restart and start from the beginning.

fixedTimeStep

Only update the system at fixed intervals, based on the value in "Fixed Time" in the Time options.

Remarks

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
restart
is true, the ParticleSystem will be reset to 0 time, and then advanced by this value. If
restart
is false, the ParticleSystem simulation will be advanced in time from its current state by this value.

withChildren

Fast-forward all child Particle Systems as well.

restart

Restart and start from the beginning.

Remarks

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
restart
is true, the ParticleSystem will be reset to 0 time, and then advanced by this value. If
restart
is false, the ParticleSystem simulation will be advanced in time from its current state by this value.

withChildren

Fast-forward all child Particle Systems as well.

Remarks

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
restart
is true, the ParticleSystem will be reset to 0 time, and then advanced by this value. If
restart
is false, the ParticleSystem simulation will be advanced in time from its current state by this value.

Remarks