文档

Unity Engine


User Manual

Script Reference

Unity Engine


IgnoreRaycastLayer

Layer mask constant for the default layer that ignores raycasts.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public const int IgnoreRaycastLayer = 4

Remarks

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