文档

Unity Engine

Unity Engine

DefaultRaycastLayers

Layer mask constant that includes all layers participating in raycasts by default.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public const int DefaultRaycastLayers = -5

Remarks

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