InitialSizeParent Class
Namespace: Stride.Particles.InitializersAssembly: Stride.Particles.dll
The InitialSizeParent is an initializer which sets the particle's size based on a followed (parent) particle's size
System.Object → ParticleTransform → ParticleModule → ParticleInitializer → ParticleChildInitializer →
InitialSizeParent
Derived from InitialSizeParent:
[DataContract("InitialSizeParent")]
[Display("Size (parent)", null)]
public class InitialSizeParent : ParticleChildInitializer
Name | Description | |
---|---|---|
Constructors | ||
InitialSizeParent() | Default constructor which also registers the fields required by this updater |
|
Properties | ||
RandomSize | Minimum and maximum values for the size field |
|
SeedOffset | The seed offset used to match or separate random values |
|
Methods | ||
Initialize(ParticlePool, Int32, Int32, Int32) |
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
Type | Description |
---|---|
Vector2 |
SeedOffset
The seed offset used to match or separate random values
[DataMember(20)]
[Display("Random Seed", null)]
public uint SeedOffset { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Methods
Initialize(ParticlePool, Int32, Int32, Int32)
public override void Initialize(ParticlePool pool, int startIdx, int endIdx, int maxCapacity)
Parameters
Type | Name | Description |
---|---|---|
ParticlePool | pool | |
System.Int32 | startIdx | |
System.Int32 | endIdx | |
System.Int32 | maxCapacity |