# GetIgnoreLayerCollision(int, int)

> Checks whether collisions between the specified layers be ignored or not.

## Definition

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

```csharp
public static bool GetIgnoreLayerCollision(int layer1, int layer2)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): ID of first layer.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): ID of second layer.

### Returns

| Type                                                          | Description                                                        |
| ------------------------------------------------------------- | ------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Whether collisions between the specified layers be ignored or not. |

### Remarks

Additional Resources: [Physics2D.IgnoreLayerCollision](/engine/6000.0/script-reference/unityengine/physics2d/ignorelayercollision.md).
