GetIgnoreLayerCollision(int, int)
Checks whether collisions between the specified layers be ignored or not.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public static bool GetIgnoreLayerCollision(int layer1, int layer2)
Parameters
Returns
Type | Description |
|---|---|
| bool | Whether collisions between the specified layers be ignored or not. |
Remarks
Additional Resources: Physics2D.IgnoreLayerCollision.