Skip to main content

PooledParticleSystem

A class in Root.Township, Features.

A pooled VFX object that knows how long it plays. Used by GenericVFXController and the downed state effects.

Constructors​

MemberWhat it is
PooledParticleSystem()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private float durationBacking field for Duration.
private bool shouldAutoDisableBacking field for ShouldAutoDisable.

Properties​

MemberWhat it is
float Duration { get; }How long the effect plays, in seconds (default 2). Callers wait this long before stopping it.
bool ShouldAutoDisable { get; }When true, GenericVFXController stops the effect by itself after Duration seconds.

Used in​

Members of other types that take, return or hold a PooledParticleSystem: