ParticleSpawnTriggerDistance Class
Namespace: Stride.Particles.SpawnersAssembly: Stride.Particles.dll
ParticleSpawnTriggerDistance triggers when the parent particle tarvels beyond set distance
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 |
Fields
SecondFieldAccessor
protected ParticleFieldAccessor<Vector3> SecondFieldAccessor
Field Value
Type | Description |
---|---|
ParticleFieldAccessor<Vector3> |
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
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 |
Overrides
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 |