Class InitialSpawnOrderGroup
- Namespace
- Stride.Particles.Initializers
- Assembly
- Stride.Particles.dll
The InitialSpawnOrderGroup is an initializer which assigns all particles an increasing number based on the order of their spawning while keeping all particles spawned in the same frame in a separate spawn group (this is important for ribbons)
[DataContract("InitialSpawnOrderGroup")]
[Display("Spawn Order (Group)", null)]
public class InitialSpawnOrderGroup : ParticleInitializer
- Inheritance
-
InitialSpawnOrderGroup
- Inherited Members
Constructors
InitialSpawnOrderGroup()
Default constructor which also registers the fields required by this updater
public InitialSpawnOrderGroup()
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()