Ctrl+K

ParticleEmitter

Declaration

public class Strawberry.Graphics.ParticleSystem.ParticleEmitter

Emits particles over time and controls per-particle behavior through a timeline.

Constructors

ParticleEmitter

Initializes a new instance of the ParticleEmitter class.

void ParticleEmitter()

ParticleEmitter

Creates a new emitter with the given sprite and timeline.

void ParticleEmitter(Sprite sprite, ParticleInitiator initiator, ParticleTimeline timeline)

Parameters:

Name Type Description
sprite Strawberry.Graphics.Sprite The sprite to use for particles.
initiator Strawberry.Graphics.ParticleSystem.ParticleInitiator The particle initiator to use for particles.
timeline Strawberry.Graphics.ParticleSystem.ParticleTimeline The timeline used to update and control particles.

Properties

Initiator

Gets or sets the initiator responsible for initializing new particles.

ParticleInitiator Initiator { get set }

Timeline

Gets or sets the timeline used to update particle behavior.

ParticleTimeline Timeline { get set }

IsFinished

Gets a value indicating whether this emitter is finished.

bool IsFinished { get }

Fields

Name

Gets or sets the emitter name.

string Name

Position

Gets or sets the emitter position.

Vector2 Position

Rotation

Gets or sets the emitter rotation in degrees.

float Rotation

Enabled

Gets or sets a value indicating whether the emitter is enabled.

bool Enabled

Sprite

Gets or sets the sprite used by emitted particles.

Sprite Sprite

EmitRate

Gets or sets the number of particles emitted per second.

float EmitRate

BurstCount

Gets or sets the number of particles to emit in a burst.

int BurstCount

HasBursted

Gets or sets a value indicating whether the burst has already occurred.

bool HasBursted

MaxParticles

Gets or sets the maximum number of active particles for this emitter.

int MaxParticles

AutoDestroy

Gets or sets a value indicating whether the emitter should auto-destroy when finished.

bool AutoDestroy

Methods

ResetBurst

Resets the burst state so the emitter can burst again.

void ResetBurst()