Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ParticleSpawnTriggerDistance Class

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

    ParticleSpawnTriggerDistance triggers when the parent particle tarvels beyond set distance

    System.Object → ParticleSpawnTrigger → ParticleSpawnTrigger<Vector3> → ParticleSpawnTriggerDistance
    Derived from ParticleSpawnTriggerDistance:

    [DataContract("ParticleSpawnTriggerDistance")]
    [Display("Distance", null)]
    public class ParticleSpawnTriggerDistance : ParticleSpawnTrigger<Vector3>
    Name Description
    Fields
    SecondFieldAccessor
    Methods
    AddRequiredParentFields(ParticleEmitter)

    Override to add the required fields to the parent emitter

    HasTriggered(Particle)
    PrepareFromPool(ParticlePool)
    RemoveRequiredParentFields(ParticleEmitter)

    Override to remove the required fields from the parent emitter

    | Improve this Doc View Source

    Fields


    SecondFieldAccessor

    protected ParticleFieldAccessor<Vector3> SecondFieldAccessor
    Field Value
    Type Description
    ParticleFieldAccessor<Vector3>
    | Improve this Doc View Source

    Methods


    AddRequiredParentFields(ParticleEmitter)

    Override to add the required fields to the parent emitter

    public override void AddRequiredParentFields(ParticleEmitter parentEmitter)
    Parameters
    Type Name Description
    ParticleEmitter parentEmitter

    Parent emitter to which required fields should be added

    Overrides
    ParticleSpawnTrigger.AddRequiredParentFields(ParticleEmitter)

    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)

    RemoveRequiredParentFields(ParticleEmitter)

    Override to remove the required fields from the parent emitter

    public override void RemoveRequiredParentFields(ParticleEmitter parentEmitter)
    Parameters
    Type Name Description
    ParticleEmitter parentEmitter

    Parent emitter from which required fields should be removed

    Overrides
    ParticleSpawnTrigger.RemoveRequiredParentFields(ParticleEmitter)

    Inherited Members

    ParticleSpawnTrigger<Vector3>.FieldAccessor

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article
    In This Article
    • Fields
      • SecondFieldAccessor
    • Methods
      • AddRequiredParentFields(ParticleEmitter)
      • HasTriggered(Particle)
      • PrepareFromPool(ParticlePool)
      • RemoveRequiredParentFields(ParticleEmitter)
    • Inherited Members
    • Extension Methods

    Back to top

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