ParticleSystemAction - CodingDino/Dino-Unity-Toolkit GitHub Wiki

The ParticleSystemAction component controls playback for an attached ParticleSystem. This could be used to play explosion effects, dust particles when landing, smoke or sparkles, and a huge variety of other effects.

This is an Action component, and therefore must be triggered by a separate Activator component. Actions, Activators, and Data make up the core system for the Dino Unity Toolkit.

Image: ParticleSystemAction attached to the player. The action is triggered by an OnTrigger2DActivator component when the player touches the ground after being in the air, making a cloud of dust to show their landing.

Actions

This component has several Action functions that can be triggered by Activators.

ActionPlayParticleSystem()

This action plays the particle system according to the system's parameters.

ActionStopParticleSystem()

This action stops the particle system. Note that the particles won't disappear immediately - they will just stop spawning. They will despawn based on the particle system's settings.