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.
- Listed in ATT, Features and other game namespaces
- Inherits or implements
PooledObject
Constructors
| Member | What it is |
|---|---|
PooledParticleSystem() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private float duration | Backing field for Duration. |
private bool shouldAutoDisable | Backing field for ShouldAutoDisable. |
Properties
| Member | What 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: