GetIgnoreCollision(Collider2D, Collider2D)
Checks whether the collision detection system will ignore all collisions/triggers between collider1 and collider2 or not.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public static bool GetIgnoreCollision(Collider2D collider1, Collider2D collider2)
Parameters
The first Collider to compare to collider2.
The second Collider to compare to collider1.
Returns
Type | Description |
|---|---|
| bool | Whether the collision detection system will ignore all collisions/triggers between collider1 and collider2 or not. |