# AreBitsSet(PhysicsMask)

> Checks if all the provided PhysicsMask set bits are also set in this PhysicsMask.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public readonly bool AreBitsSet(PhysicsMask physicsMask)
```

### Parameters

**** (\[PhysicsMask]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsmask)): The PhysicsMask bits to compare to this PhysicsMask. If this is zero, false will always be returned.

### Returns

| Type                                                          | Description                                                                                      |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if all bits in the specified PhysicsMask are also set in this PhysicsMask, false otherwise. |
