# ParticleSystem.TriggerModule

> Script interface for the TriggerModule.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.ParticleSystemModule

```csharp
public struct ParticleSystem.TriggerModule
```

## Remarks

This module is useful for killing particles when they touch a set of collision shapes, or for calling a script command to let you apply custom particle behaviors when the trigger is activated.

The example code for [MonoBehaviour.OnParticleTrigger()](/engine/6000.0/script-reference/unityengine/monobehaviour/onparticletrigger.md) shows how the callback type action works.

Additional Resources: [ParticleSystem](/engine/6000.0/script-reference/unityengine/particlesystem.md), [ParticleSystem.trigger](/engine/6000.0/script-reference/unityengine/particlesystem/trigger.md).

## Properties

| Property                                                                                                           | Description                                                                                            |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
| [colliderCount](/engine/6000.0/script-reference/unityengine/particlesystem/triggermodule/collidercount.md)         | Indicates the number of collision shapes attached to this Particle System trigger.                     |
| [colliderQueryMode](/engine/6000.0/script-reference/unityengine/particlesystem/triggermodule/colliderquerymode.md) | Determines whether collider information is available when calling ParticleSystem::GetTriggerParticles. |
| [enabled](/engine/6000.0/script-reference/unityengine/particlesystem/triggermodule/enabled.md)                     | Specifies whether the TriggerModule is enabled or disabled.                                            |
| [enter](/engine/6000.0/script-reference/unityengine/particlesystem/triggermodule/enter.md)                         | Choose what action to perform when particles enter the trigger volume.                                 |
| [exit](/engine/6000.0/script-reference/unityengine/particlesystem/triggermodule/exit.md)                           | Choose what action to perform when particles leave the trigger volume.                                 |
| [inside](/engine/6000.0/script-reference/unityengine/particlesystem/triggermodule/inside.md)                       | Choose what action to perform when particles are inside the trigger volume.                            |
| [outside](/engine/6000.0/script-reference/unityengine/particlesystem/triggermodule/outside.md)                     | Choose what action to perform when particles are outside the trigger volume.                           |
| [radiusScale](/engine/6000.0/script-reference/unityengine/particlesystem/triggermodule/radiusscale.md)             | A multiplier Unity applies to the size of each particle before it processes overlaps.                  |

## Methods

| Method                                                                                                       | Description                                                             |
| ------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| [AddCollider](/engine/6000.0/script-reference/unityengine/particlesystem/triggermodule/addcollider.md)       | Adds a Collision shape associated with this Particle System trigger.    |
| [GetCollider](/engine/6000.0/script-reference/unityengine/particlesystem/triggermodule/getcollider.md)       | Gets a collision shape associated with this Particle System trigger.    |
| [RemoveCollider](/engine/6000.0/script-reference/unityengine/particlesystem/triggermodule/removecollider.md) | Removes a collision shape associated with this Particle System trigger. |
| [SetCollider](/engine/6000.0/script-reference/unityengine/particlesystem/triggermodule/setcollider.md)       | Sets a Collision shape associated with this Particle System trigger.    |
