Physics2D.GetIgnoreLayerCollision
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.
See Also: IgnoreLayerCollision.