# SetSubEmitterType(int, ParticleSystemSubEmitterType)

> Sets the type of the sub-emitter at the given index.

## Definition

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

```csharp
public void SetSubEmitterType(int index, ParticleSystemSubEmitterType type)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the sub-emitter you want to modify.**** (\[ParticleSystemSubEmitterType]\(/engine/6000.5/script-reference/unityengine/particlesystemsubemittertype)): The new spawning type to assign to this sub-emitter.
