Feel  4.3
The best way to improve your game's feel and make it extra juicy
MoreMountains.Tools.MMAutoDestroyParticleSystem Class Reference

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 More...

Inheritance diagram for MoreMountains.Tools.MMAutoDestroyParticleSystem:

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
 

Detailed Description

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

Member Function Documentation

◆ DestroyParticleSystem()

virtual void MoreMountains.Tools.MMAutoDestroyParticleSystem.DestroyParticleSystem ( )
protectedvirtual

Destroys the particle system.

◆ Start()

virtual void MoreMountains.Tools.MMAutoDestroyParticleSystem.Start ( )
protectedvirtual

Initialization, we get the ParticleSystem component

◆ Update()

virtual void MoreMountains.Tools.MMAutoDestroyParticleSystem.Update ( )
protectedvirtual

When the ParticleSystem stops playing, we destroy it.

Member Data Documentation

◆ _particleSystem

ParticleSystem MoreMountains.Tools.MMAutoDestroyParticleSystem._particleSystem
protected

◆ _started

bool MoreMountains.Tools.MMAutoDestroyParticleSystem._started = false
protected

◆ _startTime

float MoreMountains.Tools.MMAutoDestroyParticleSystem._startTime
protected

◆ DestroyDelay

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.

◆ DestroyParent

bool MoreMountains.Tools.MMAutoDestroyParticleSystem.DestroyParent = false

True if the ParticleSystem should also destroy its parent.


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