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
poolParticlePoolParticle pool to target
startIdxintStarting index (included from the array)
endIdxintEnd index (excluded from the array)
maxCapacityintMax 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()