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

Physics2D.DefaultRaycastLayers

public static int DefaultRaycastLayers;

Description

Layer mask constant that includes all layers participating in raycasts by default.

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

See Also: Raycast, IgnoreRaycastLayer, AllLayers.

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