# operator |(PhysicsMask, PhysicsMask)

> Bitwise OR operator for PhysicsMask.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public static PhysicsMask operator |(PhysicsMask bitMaskA, PhysicsMask bitMaskB)
```

### Parameters

**** (\[PhysicsMask]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsmask)): The first PhysicsMask to perform the operation with.**** (\[PhysicsMask]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsmask)): The second PhysicsMask to perform the operation with.

### Returns

| Type                                                                            | Description                                 |
| ------------------------------------------------------------------------------- | ------------------------------------------- |
| [PhysicsMask](/engine/6000.7/script-reference/unity/u2d/physics/physicsmask.md) | The bit-wise operation using both BitMasks. |
