# SetTriggerParticles

> Write modified particles back to the Particle System, during a call to OnParticleTrigger.

## Definition

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

## SetTriggerParticles(ParticleSystem, ParticleSystemTriggerEventType, List\<Particle>, int, int)

Write modified particles back to the Particle System, during a call to OnParticleTrigger.

```csharp
public static void SetTriggerParticles(this ParticleSystem ps, ParticleSystemTriggerEventType type, List<ParticleSystem.Particle> particles, int offset, int count)
```

### Parameters

**** (\[ParticleSystem]\(/engine/6000.3/script-reference/unityengine/particlesystem)): Particle system.**** (\[ParticleSystemTriggerEventType]\(/engine/6000.3/script-reference/unityengine/particlesystemtriggereventtype)): Type of trigger to set particles for.**** (\[List\<Particle>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): Particle array.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Offset into the array, if you only want to write back a subset of the returned particles.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Number of particles to write, if you only want to write back a subset of the returned particles.

### Remarks

Additional Resources: GetTriggerParticles.

## SetTriggerParticles(ParticleSystem, ParticleSystemTriggerEventType, List\<Particle>)

Write modified particles back to the Particle System, during a call to OnParticleTrigger.

```csharp
public static void SetTriggerParticles(this ParticleSystem ps, ParticleSystemTriggerEventType type, List<ParticleSystem.Particle> particles)
```

### Parameters

**** (\[ParticleSystem]\(/engine/6000.3/script-reference/unityengine/particlesystem)): Particle system.**** (\[ParticleSystemTriggerEventType]\(/engine/6000.3/script-reference/unityengine/particlesystemtriggereventtype)): Type of trigger to set particles for.**** (\[List\<Particle>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): Particle array.

### Remarks

Additional Resources: GetTriggerParticles.
