Class InitialSpawnOrder
- Namespace
- Stride.Particles.Initializers
- Assembly
- Stride.Particles.dll
The InitialSpawnOrder is an initializer which assigns all particles an increasing number based on the order of their spawning
[DataContract("InitialSpawnOrder")]
[Display("Spawn Order", null)]
public class InitialSpawnOrder : ParticleInitializer
- Inheritance
-
InitialSpawnOrder
- Inherited Members
Constructors
InitialSpawnOrder()
Default constructor which also registers the fields required by this updater
public InitialSpawnOrder()
Methods
Initialize(ParticlePool, int, int, int)
Override Initialize if your module acts as an Initializer and change its type to Initializer
public override void Initialize(ParticlePool pool, int startIdx, int endIdx, int maxCapacity)
Parameters
pool
ParticlePoolParticle pool to target
startIdx
intStarting index (included from the array)
endIdx
intEnd index (excluded from the array)
maxCapacity
intMax pool capacity (loops after this point) so that it's possible for (endIdx < startIdx)
ResetSimulation()
Resets the current state to the module's initial state
public override void ResetSimulation()