InitialColorParent Class
Namespace: Stride.Particles.InitializersAssembly: Stride.Particles.dll
The InitialColorParent is an initializer which sets the particle's initial color based on a followed (parent) particle's color
System.Object → ParticleTransform → ParticleModule → ParticleInitializer → ParticleChildInitializer →
InitialColorParent
Derived from InitialColorParent:
[DataContract("InitialColorParent")]
[Display("Color (parent)", null)]
public class InitialColorParent : ParticleChildInitializer
Name | Description | |
---|---|---|
Constructors | ||
InitialColorParent() | Default constructor which also registers the fields required by this updater |
|
Properties | ||
ColorMax | The second color to interpolate to |
|
ColorMin | The first color to interpolate from |
|
SeedOffset | The seed offset used to match or separate random values |
|
Methods | ||
Initialize(ParticlePool, Int32, Int32, Int32) |
Constructors
InitialColorParent()
Default constructor which also registers the fields required by this updater
public InitialColorParent()
Properties
ColorMax
The second color to interpolate to
[DataMember(40)]
[Display("Color B", null)]
public Color4 ColorMax { get; set; }
Property Value
Type | Description |
---|---|
Color4 |
ColorMin
The first color to interpolate from
[DataMember(30)]
[Display("Color A", null)]
public Color4 ColorMin { get; set; }
Property Value
Type | Description |
---|---|
Color4 |
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 |