Table of Contents

Class InitialOrderParent

Namespace
Stride.Particles.Initializers
Assembly
Stride.Particles.dll

The InitialOrderParent is an initializer which sets the particle's spawn order based on a followed (parent) particle's order

[DataContract("InitialOrderParent")]
[Display("Spawn Order (parent)", null)]
public class InitialOrderParent : ParticleChildInitializer
Inheritance
InitialOrderParent
Inherited Members

Constructors

InitialOrderParent()

Default constructor which also registers the fields required by this updater

public InitialOrderParent()

Methods

AddControlGroup()

Adds the required control group field to the parent emitter's pool

protected override void AddControlGroup()

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 ParticlePool

Particle pool to target

startIdx int

Starting index (included from the array)

endIdx int

End index (excluded from the array)

maxCapacity int

Max pool capacity (loops after this point) so that it's possible for (endIdx < startIdx)

RemoveControlGroup()

Removes the old required control group field from the parent emitter's pool

protected override void RemoveControlGroup()

ResetSimulation()

Resets the current state to the module's initial state

public override void ResetSimulation()