Table of Contents

Class ParticleSpawnTriggerDistance

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

ParticleSpawnTriggerDistance triggers when the parent particle tarvels beyond set distance

[DataContract("ParticleSpawnTriggerDistance")]
[Display("Distance", null)]
public class ParticleSpawnTriggerDistance : ParticleSpawnTrigger<Vector3>
Inheritance
ParticleSpawnTriggerDistance
Inherited Members

Fields

SecondFieldAccessor

protected ParticleFieldAccessor<Vector3> SecondFieldAccessor

Field Value

ParticleFieldAccessor<Vector3>

Methods

AddRequiredParentFields(ParticleEmitter)

Override to add the required fields to the parent emitter

public override void AddRequiredParentFields(ParticleEmitter parentEmitter)

Parameters

parentEmitter ParticleEmitter

Parent emitter to which required fields should be added

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 Particle

Parent 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

RemoveRequiredParentFields(ParticleEmitter)

Override to remove the required fields from the parent emitter

public override void RemoveRequiredParentFields(ParticleEmitter parentEmitter)

Parameters

parentEmitter ParticleEmitter

Parent emitter from which required fields should be removed