# SetSubEmitterSystem(int, ParticleSystem)

> Sets the Particle System to use as the sub-emitter at the given index.

## Definition

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

```csharp
public void SetSubEmitterSystem(int index, ParticleSystem subEmitter)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the sub-emitter you want to modify.**** (\[ParticleSystem]\(/engine/6000.0/script-reference/unityengine/particlesystem)): The Particle System to use as the sub-emitter at the specified index.
