Inventory Engine
v3.8
|
Add this class to a ParticleSystem so it auto destroys once it has stopped emitting. More...
Inherits MonoBehaviour.
Public Attributes | |
bool | DestroyParent = false |
True if the ParticleSystem should also destroy its parent. More... | |
float | DestroyDelay = 0f |
If for some reason your particles don't get destroyed automatically at the end of the emission, you can force a destroy after a delay. Leave it at zero otherwise. More... | |
Protected Member Functions | |
virtual void | Start () |
Initialization, we get the ParticleSystem component More... | |
virtual void | Update () |
When the ParticleSystem stops playing, we destroy it. More... | |
virtual void | DestroyParticleSystem () |
Destroys the particle system. More... | |
Protected Attributes | |
ParticleSystem | _particleSystem |
float | _startTime |
bool | _started = false |
Add this class to a ParticleSystem so it auto destroys once it has stopped emitting.
Make sure your ParticleSystem isn't looping, otherwise this script will be useless
|
protectedvirtual |
Destroys the particle system.
|
protectedvirtual |
Initialization, we get the ParticleSystem component
|
protectedvirtual |
When the ParticleSystem stops playing, we destroy it.
|
protected |
|
protected |
|
protected |
float MoreMountains.Tools.MMAutoDestroyParticleSystem.DestroyDelay = 0f |
If for some reason your particles don't get destroyed automatically at the end of the emission, you can force a destroy after a delay. Leave it at zero otherwise.
bool MoreMountains.Tools.MMAutoDestroyParticleSystem.DestroyParent = false |
True if the ParticleSystem should also destroy its parent.