Table of Contents

Class SpawnerFromDistance

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

A particle spawner which continuously spawns particles. Number of particles to be spawned is given in seconds.

[DataContract("SpawnerFromDistance")]
[Display("Distance", null)]
public sealed class SpawnerFromDistance : ParticleSpawner
Inheritance
SpawnerFromDistance
Inherited Members

Constructors

SpawnerFromDistance()

public SpawnerFromDistance()

Properties

SpawnCount

The amount of particles this spawner will emit over one second, every second

[DataMember(40)]
[Display("Particles/unit", null)]
public float SpawnCount { get; set; }

Property Value

float

Methods

GetMaxParticlesPerSecond()

Get the maximum number of particles this spawner can emit in one second

public override int GetMaxParticlesPerSecond()

Returns

int

Peak particles per second

SpawnNew(float, ParticleEmitter)

This method will be called form the emitter when it needs to poll how many particles to spawn (usually once per frame)

public override void SpawnNew(float dt, ParticleEmitter emitter)

Parameters

dt float

Time it has past since the last update (in seconds)

emitter ParticleEmitter

Parent emitter in which new particles should be emitter