# GetCollider(int, int)

> Retrieve a specific Collider that a particle iss interacting with.

## Definition

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

```csharp
public Component GetCollider(int particleIndex, int colliderIndex)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the particle event.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the collider to obtain.

### Returns

| Type                                                                  | Description                                                               |
| --------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [Component](/engine/6000.6/script-reference/unityengine/component.md) | The Collider or Collider2D Component that a particle is interacting with. |
