# GetContactPair(int)

> Gets the ContactPair at index of this pair header.

## Definition

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

```csharp
public ref readonly ContactPair GetContactPair(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The [ContactPair](/engine/6000.5/script-reference/unityengine/contactpair.md) index.

### Returns

| Type                                                                      | Description                                                                                                               |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [ContactPair](/engine/6000.5/script-reference/unityengine/contactpair.md) | A reference or a copy of the [ContactPair](/engine/6000.5/script-reference/unityengine/contactpair.md) struct at `index`. |

### Remarks

Can be used with the /ref readonly/ keyword to avoid copying the whole struct.
