# operator |

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

## Definition

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

## operator |(uint4, uint4)

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

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

### Parameters

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

### Returns

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

## operator |(uint4, uint)

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

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

### Parameters

**** (\[uint4]\(/engine/6000.6/script-reference/unity/mathematics/uint4)): Left hand side uint4 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                                   |
| ------------------------------------------------------------------- | --------------------------------------------- |
| [uint4](/engine/6000.6/script-reference/unity/mathematics/uint4.md) | uint4 result of the componentwise bitwise or. |

## operator |(uint, uint4)

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

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

### Parameters

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

### Returns

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