![]() |
Infohazard.Core 1.4.1
Infohazard Core Utility Library
|
A component that can be attached to ParticleSystem GameObjects to make them work correctly with pooling. More...
A component that can be attached to ParticleSystem GameObjects to make them work correctly with pooling.
This script enables ParticleSystems to reset and play when they are spawned using the pooling system, and to optionally despawn themselves when they complete. This script must be placed on a GameObject with a ParticleSystem component, and there must be a Spawnable component in this object or a parent. In order for despawning to work, the ParticleSystem must have its Stop Action set to Callback. If there are multiple ParticleSystems in a prefab, only the root one should have _despawnOnDone set to true.