Class InitialSizeParent
- Namespace
- Stride.Particles.Initializers
- Assembly
- Stride.Particles.dll
The InitialSizeParent is an initializer which sets the particle's size based on a followed (parent) particle's size
[DataContract("InitialSizeParent")]
[Display("Size (parent)", null)]
public class InitialSizeParent : ParticleChildInitializer
- Inheritance
-
InitialSizeParent
- Inherited Members
Constructors
InitialSizeParent()
Default constructor which also registers the fields required by this updater
public InitialSizeParent()
Properties
RandomSize
Minimum and maximum values for the size field
[DataMember(30)]
[Display("Random size", null)]
public Vector2 RandomSize { get; set; }
Property Value
SeedOffset
The seed offset used to match or separate random values
[DataMember(20)]
[Display("Random Seed", null)]
public uint SeedOffset { get; set; }
Property Value
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
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)