Physics2D.GetIgnoreLayerCollision

Declaration

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.

Additional resources: IgnoreLayerCollision.


Did you find this page useful? Please give it a rating: