Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ParticleSpawnTriggerLifetime Class

    Namespace: Stride.Particles.Spawners
    Assembly: Stride.Particles.dll

    ParticleSpawnTriggerLifetime triggers when the parent particle's remaining lifetime is within the specified limit

    System.Object → ParticleSpawnTrigger → ParticleSpawnTrigger<System.Single> → ParticleSpawnTriggerLifetime
    Derived from ParticleSpawnTriggerLifetime:

    [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)
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Methods


    HasTriggered(Particle)

    public override float HasTriggered(Particle parentParticle)
    Parameters
    Type Name Description
    Particle parentParticle
    Returns
    Type Description
    System.Single
    Overrides
    ParticleSpawnTrigger.HasTriggered(Particle)

    PrepareFromPool(ParticlePool)

    public override void PrepareFromPool(ParticlePool pool)
    Parameters
    Type Name Description
    ParticlePool pool
    Overrides
    ParticleSpawnTrigger.PrepareFromPool(ParticlePool)

    Inherited Members

    ParticleSpawnTrigger<Single>.FieldAccessor
    ParticleSpawnTrigger.AddRequiredParentFields(ParticleEmitter)
    ParticleSpawnTrigger.RemoveRequiredParentFields(ParticleEmitter)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article
    In This Article
    • Properties
      • LifetimeLowerLimit
      • LifetimeUpperLimit
    • Methods
      • HasTriggered(Particle)
      • PrepareFromPool(ParticlePool)
    • Inherited Members
    • Extension Methods

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation