# GetSubEmitterType(int)

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

## Definition

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

```csharp
public ParticleSystemSubEmitterType GetSubEmitterType(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the desired sub-emitter.

### Returns

| Type                                                                                                        | Description                           |
| ----------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| [ParticleSystemSubEmitterType](/engine/6000.3/script-reference/unityengine/particlesystemsubemittertype.md) | The type of sub-emitter at the index. |
