Version: 2017.3

Physics2D.GetIgnoreLayerCollision

Switch to Manual
public static bool GetIgnoreLayerCollision (int layer1, int layer2);

Parameters

layer1 ID of first layer.
layer2 ID of second layer.

Returns

bool Whether collisions between the specified layers be ignored or not.

Description

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