Legacy Documentation: Version 5.5
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

layer1 ID of first layer.
layer2 ID of second layer.

Description

Should collisions between the specified layers be ignored?