Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Physics2D.GetIgnoreLayerCollision

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.

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