s&box docs

public abstract class Sandbox.ParticleEmitter : Sandbox.Component

Creates particles. Should be attached to a `Sandbox.ParticleEffect`.

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 8 methods

public virtual bool Emit(Sandbox.ParticleEffect target)

Implementations

protected virtual void EmitOverDistance()

protected virtual int GetBurstCount()

Allows child emitters to override how many particles are in a burst

Implementations

protected virtual int GetRateCount()

Allows child emitters to override how many particles are in a rate

Implementations

protected virtual void OnBurst()

protected virtual void OnDisabled()

protected virtual void OnEnabled()

public void ResetEmitter()

Properties

Showing 10 properties

public float Sandbox.ParticleEmitter.Delta { get; set; }

0-1, the life time of the emitter

public bool Sandbox.ParticleEmitter.DestroyOnEnd { get; set; }

Whether to destroy the GameObject when the emitter finishes (only applies when Loop is false)

public float Sandbox.ParticleEmitter.EmitRandom { get; set; }

0-1, a random number to be used for this loop of the emitter

public bool Sandbox.ParticleEmitter.IsBursting { get; set; }

True if we're doing a burst

public bool Sandbox.ParticleEmitter.Loop { get; set; }

Whether the emitter should restart after finishing

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.ParticleEmitter

On this page