# RemoveSubEmitter

> Removes a sub-emitter from the given index in the array.

## Definition

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

## RemoveSubEmitter(int)

Removes a sub-emitter from the given index in the array.

```csharp
public void RemoveSubEmitter(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index from which to remove a sub-emitter.

### Remarks

Additional Resources: [ParticleSystem.SubEmittersModule.AddSubEmitter](/engine/6000.3/script-reference/unityengine/particlesystem/subemittersmodule/addsubemitter.md).

## RemoveSubEmitter(ParticleSystem)

Removes a sub-emitter from the given index in the array.

```csharp
public void RemoveSubEmitter(ParticleSystem subEmitter)
```

### Parameters

**** (\[ParticleSystem]\(/engine/6000.3/script-reference/unityengine/particlesystem)): The sub-emitter to remove.

### Remarks

Additional Resources: [ParticleSystem.SubEmittersModule.AddSubEmitter](/engine/6000.3/script-reference/unityengine/particlesystem/subemittersmodule/addsubemitter.md).
