Version: 2019.1 (switch to 2018.3 or 2017.4)
LanguageEnglish
  • C#

Physics2D.IgnoreRaycastLayer

public static int IgnoreRaycastLayer;

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.

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