AreBitsSet(PhysicsMask)
Checks if all the provided PhysicsMask set bits are also set in this PhysicsMask.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public readonly bool AreBitsSet(PhysicsMask physicsMask)
Parameters
The PhysicsMask bits to compare to this PhysicsMask. If this is zero, false will always be returned.
Returns
Type | Description |
|---|---|
| bool | True if all bits in the specified PhysicsMask are also set in this PhysicsMask, false otherwise. |