GameObject Pooler
FreakLib.Pooling.OneshotParticle Class Reference

This class implements a one-shot ParticleSystem, that can be used with a Pool. More...

Inheritance diagram for FreakLib.Pooling.OneshotParticle:

Detailed Description

This class implements a one-shot ParticleSystem, that can be used with a Pool.

The class requires that a ParticleSystem be present on the same GameObject.

Attach this to a prefab set up as a pool item, then use Pool.Borrow on this prefab to play the ParticleSystem once. It will return itself to the pool once the ParticleSystem has stopped playing. Note that setting the attached ParticleSystem to loop will cause it to stay in the scene forever.


The documentation for this class was generated from the following file: