ParticleSpawnTriggerLifetime Class
Namespace: Stride.Particles.SpawnersAssembly: Stride.Particles.dll
ParticleSpawnTriggerLifetime triggers when the parent particle's remaining lifetime is within the specified limit
[DataContract("ParticleSpawnTriggerLifetime")]
[Display("Lifetime", null)]
public class ParticleSpawnTriggerLifetime : ParticleSpawnTrigger<float>
Name | Description | |
---|---|---|
Properties | ||
LifetimeLowerLimit | If the parent particle is younger than the lower limit, it won't spawn children. When the lower limit is higher than the upper limit the condition is reversed. |
|
LifetimeUpperLimit | If the parent particle is older than the upper limit, it won't spawn children. When the upper limit is smaller than the lower limit the condition is reversed. |
|
Methods | ||
HasTriggered(Particle) | ||
PrepareFromPool(ParticlePool) |
Properties
LifetimeLowerLimit
If the parent particle is younger than the lower limit, it won't spawn children. When the lower limit is higher than the upper limit the condition is reversed.
[DataMember(10)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
[Display("Lower Limit", null)]
public float LifetimeLowerLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
LifetimeUpperLimit
If the parent particle is older than the upper limit, it won't spawn children. When the upper limit is smaller than the lower limit the condition is reversed.
[DataMember(20)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
[Display("Upper Limit", null)]
public float LifetimeUpperLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
HasTriggered(Particle)
public override float HasTriggered(Particle parentParticle)
Parameters
Type | Name | Description |
---|---|---|
Particle | parentParticle |
Returns
Type | Description |
---|---|
System.Single |
Overrides
PrepareFromPool(ParticlePool)
public override void PrepareFromPool(ParticlePool pool)
Parameters
Type | Name | Description |
---|---|---|
ParticlePool | pool |