Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

Physics2D.GetIgnoreLayerCollision

public static function GetIgnoreLayerCollision(layer1: int, layer2: int): bool;

Parameters

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

Description

Should collisions between the specified layers be ignored?

See Also: ::IgnoreLayerCollision.