Version: 2019.1

Physics2D.GetIgnoreLayerCollision

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

Parameters

layer1ID of first layer.
layer2ID 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.