colliderMask
The mask used to select specific layers allowed to interact with the effector.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public int colliderMask { get; set; }
Remarks
Any Collider2D used by the effector will only interact with colliders on the specified layers. The layer of this GameObject will not be used by these colliders.