Version: 5.4

Physics2D.GetIgnoreLayerCollision

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

Parameters

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

Description

Should collisions between the specified layers be ignored?