layerMask
Sets the contact filter to filter the results that only include Collider2D on the layers defined by the layer mask.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public LayerMask layerMask
Remarks
This field takes effect if ContactFilter2D.useLayerMask is true.
Additional Resources: LayerMask.