# operator |

> Returns the result of a componentwise bitwise or operation on two uint2 vectors.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.Mathematics](/engine/6000.5/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

## operator |(uint2, uint2)

Returns the result of a componentwise bitwise or operation on two uint2 vectors.

```csharp
public static uint2 operator |(uint2 lhs, uint2 rhs)
```

### Parameters

**** (\[uint2]\(/engine/6000.5/script-reference/unity/mathematics/uint2)): Left hand side uint2 to use to compute componentwise bitwise or.**** (\[uint2]\(/engine/6000.5/script-reference/unity/mathematics/uint2)): Right hand side uint2 to use to compute componentwise bitwise or.

### Returns

| Type                                                                | Description                                   |
| ------------------------------------------------------------------- | --------------------------------------------- |
| [uint2](/engine/6000.5/script-reference/unity/mathematics/uint2.md) | uint2 result of the componentwise bitwise or. |

## operator |(uint2, uint)

Returns the result of a componentwise bitwise or operation on a uint2 vector and a uint value.

```csharp
public static uint2 operator |(uint2 lhs, uint rhs)
```

### Parameters

**** (\[uint2]\(/engine/6000.5/script-reference/unity/mathematics/uint2)): Left hand side uint2 to use to compute componentwise bitwise or.**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): Right hand side uint to use to compute componentwise bitwise or.

### Returns

| Type                                                                | Description                                   |
| ------------------------------------------------------------------- | --------------------------------------------- |
| [uint2](/engine/6000.5/script-reference/unity/mathematics/uint2.md) | uint2 result of the componentwise bitwise or. |

## operator |(uint, uint2)

Returns the result of a componentwise bitwise or operation on a uint value and a uint2 vector.

```csharp
public static uint2 operator |(uint lhs, uint2 rhs)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): Left hand side uint to use to compute componentwise bitwise or.**** (\[uint2]\(/engine/6000.5/script-reference/unity/mathematics/uint2)): Right hand side uint2 to use to compute componentwise bitwise or.

### Returns

| Type                                                                | Description                                   |
| ------------------------------------------------------------------- | --------------------------------------------- |
| [uint2](/engine/6000.5/script-reference/unity/mathematics/uint2.md) | uint2 result of the componentwise bitwise or. |
