Class ParticleSpawnTriggerLifetime
ParticleSpawnTriggerLifetime triggers when the parent particle's remaining lifetime is within the specified limit
[DataContract("ParticleSpawnTriggerLifetime")]
[Display("Lifetime", null)]
public class ParticleSpawnTriggerLifetime : ParticleSpawnTrigger<float>
- Inheritance
-
ParticleSpawnTriggerLifetime
- Inherited Members
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
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
Methods
HasTriggered(Particle)
For positive values, shows if the condition was met and how much is the magnitude
public override float HasTriggered(Particle parentParticle)
Parameters
parentParticle
ParticleParent particle which attributes are used for testing
Returns
- float
0f if it hasn't triggered, positive value otherwise, which also indicates the magnitude of the trigger
PrepareFromPool(ParticlePool)
Prepares fields accessors before the
public override void PrepareFromPool(ParticlePool pool)
Parameters
pool
ParticlePool