Version: 2018.2

Physics.GetIgnoreLayerCollision

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

Description

Are collisions between layer1 and layer2 being ignored?

Returns the value set by Physics.IgnoreLayerCollision or in the Physics inspector.