ToLayerMask()
Convert the lower 32-bits of the 64-bit mask to the 32-bit LayerMask. A LayerMask is only 32-bits wide so the upper 32-bits of the PhysicsMask will be ignored.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public readonly LayerMask ToLayerMask()
Returns
Type | Description |
|---|---|
| LayerMask | A 32-bit layer-mask converted from the lower 32-bits of the 64-bit mask. |