Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Physics2D.IgnoreRaycastLayer

static var IgnoreRaycastLayer: int;
static int IgnoreRaycastLayer;
static IgnoreRaycastLayer as int

Description

Layer mask constant for the default layer that ignores raycasts.

The value of the mask is the bitwise complement of the DefaultRaycastLayers mask.

See Also: Raycast, DefaultRaycastLayers, AllLayers.