# uint3

> A 3 component vector of uints.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Mathematics](/engine/6000.5/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule
* **Implements:** [IEquatable\<uint3>](https://learn.microsoft.com/dotnet/api/system.iequatable-1), [IFormattable](https://learn.microsoft.com/dotnet/api/system.iformattable)

```csharp
public struct uint3 : IEquatable<uint3>, IFormattable
```

## Fields

| Value                                                             | Description                |
| ----------------------------------------------------------------- | -------------------------- |
| [x](/engine/6000.5/script-reference/unity/mathematics/uint3/x.md) | x component of the vector. |
| [y](/engine/6000.5/script-reference/unity/mathematics/uint3/y.md) | y component of the vector. |
| [z](/engine/6000.5/script-reference/unity/mathematics/uint3/z.md) | z component of the vector. |

## Static Fields

| Value                                                                   | Description       |
| ----------------------------------------------------------------------- | ----------------- |
| [zero](/engine/6000.5/script-reference/unity/mathematics/uint3/zero.md) | uint3 zero value. |

## Constructors

| Constructor                                                                                                                                 | Description                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [uint3(System.Boolean)](/engine/6000.5/script-reference/unity/mathematics/uint3/ctor.md#uint3\(bool\))                                      | Constructs a uint3 vector from a single bool value by converting it to uint and assigning it to every component.   |
| [uint3(System.Double)](/engine/6000.5/script-reference/unity/mathematics/uint3/ctor.md#uint3\(double\))                                     | Constructs a uint3 vector from a single double value by converting it to uint and assigning it to every component. |
| [uint3(System.Int32)](/engine/6000.5/script-reference/unity/mathematics/uint3/ctor.md#uint3\(int\))                                         | Constructs a uint3 vector from a single int value by converting it to uint and assigning it to every component.    |
| [uint3(System.Single)](/engine/6000.5/script-reference/unity/mathematics/uint3/ctor.md#uint3\(float\))                                      | Constructs a uint3 vector from a single float value by converting it to uint and assigning it to every component.  |
| [uint3(System.UInt32)](/engine/6000.5/script-reference/unity/mathematics/uint3/ctor.md#uint3\(uint\))                                       | Constructs a uint3 vector from a single uint value by assigning it to every component.                             |
| [uint3(System.UInt32,System.UInt32,System.UInt32)](/engine/6000.5/script-reference/unity/mathematics/uint3/ctor.md#uint3\(uint-uint-uint\)) | Constructs a uint3 vector from three uint values.                                                                  |
| [uint3(System.UInt32,Unity.Mathematics.uint2)](/engine/6000.5/script-reference/unity/mathematics/uint3/ctor.md#uint3\(uint-uint2\))         | Constructs a uint3 vector from a uint value and a uint2 vector.                                                    |
| [uint3(Unity.Mathematics.bool3)](/engine/6000.5/script-reference/unity/mathematics/uint3/ctor.md#uint3\(bool3\))                            | Constructs a uint3 vector from a bool3 vector by componentwise conversion.                                         |
| [uint3(Unity.Mathematics.double3)](/engine/6000.5/script-reference/unity/mathematics/uint3/ctor.md#uint3\(double3\))                        | Constructs a uint3 vector from a double3 vector by componentwise conversion.                                       |
| [uint3(Unity.Mathematics.float3)](/engine/6000.5/script-reference/unity/mathematics/uint3/ctor.md#uint3\(float3\))                          | Constructs a uint3 vector from a float3 vector by componentwise conversion.                                        |
| [uint3(Unity.Mathematics.int3)](/engine/6000.5/script-reference/unity/mathematics/uint3/ctor.md#uint3\(int3\))                              | Constructs a uint3 vector from a int3 vector by componentwise conversion.                                          |
| [uint3(Unity.Mathematics.uint2,System.UInt32)](/engine/6000.5/script-reference/unity/mathematics/uint3/ctor.md#uint3\(uint2-uint\))         | Constructs a uint3 vector from a uint2 vector and a uint value.                                                    |
| [uint3(Unity.Mathematics.uint3)](/engine/6000.5/script-reference/unity/mathematics/uint3/ctor.md#uint3\(uint3\))                            | Constructs a uint3 vector from a uint3 vector.                                                                     |

## Properties

| Property                                                                    | Description                                    |
| --------------------------------------------------------------------------- | ---------------------------------------------- |
| [this\[\]](/engine/6000.5/script-reference/unity/mathematics/uint3/item.md) | Returns the uint element at a specified index. |
| [xx](/engine/6000.5/script-reference/unity/mathematics/uint3/xx.md)         | Swizzles the vector.                           |
| [xxx](/engine/6000.5/script-reference/unity/mathematics/uint3/xxx.md)       | Swizzles the vector.                           |
| [xxxx](/engine/6000.5/script-reference/unity/mathematics/uint3/xxxx.md)     | Swizzles the vector.                           |
| [xxxy](/engine/6000.5/script-reference/unity/mathematics/uint3/xxxy.md)     | Swizzles the vector.                           |
| [xxxz](/engine/6000.5/script-reference/unity/mathematics/uint3/xxxz.md)     | Swizzles the vector.                           |
| [xxy](/engine/6000.5/script-reference/unity/mathematics/uint3/xxy.md)       | Swizzles the vector.                           |
| [xxyx](/engine/6000.5/script-reference/unity/mathematics/uint3/xxyx.md)     | Swizzles the vector.                           |
| [xxyy](/engine/6000.5/script-reference/unity/mathematics/uint3/xxyy.md)     | Swizzles the vector.                           |
| [xxyz](/engine/6000.5/script-reference/unity/mathematics/uint3/xxyz.md)     | Swizzles the vector.                           |
| [xxz](/engine/6000.5/script-reference/unity/mathematics/uint3/xxz.md)       | Swizzles the vector.                           |
| [xxzx](/engine/6000.5/script-reference/unity/mathematics/uint3/xxzx.md)     | Swizzles the vector.                           |
| [xxzy](/engine/6000.5/script-reference/unity/mathematics/uint3/xxzy.md)     | Swizzles the vector.                           |
| [xxzz](/engine/6000.5/script-reference/unity/mathematics/uint3/xxzz.md)     | Swizzles the vector.                           |
| [xy](/engine/6000.5/script-reference/unity/mathematics/uint3/xy.md)         | Swizzles the vector.                           |
| [xyx](/engine/6000.5/script-reference/unity/mathematics/uint3/xyx.md)       | Swizzles the vector.                           |
| [xyxx](/engine/6000.5/script-reference/unity/mathematics/uint3/xyxx.md)     | Swizzles the vector.                           |
| [xyxy](/engine/6000.5/script-reference/unity/mathematics/uint3/xyxy.md)     | Swizzles the vector.                           |
| [xyxz](/engine/6000.5/script-reference/unity/mathematics/uint3/xyxz.md)     | Swizzles the vector.                           |
| [xyy](/engine/6000.5/script-reference/unity/mathematics/uint3/xyy.md)       | Swizzles the vector.                           |
| [xyyx](/engine/6000.5/script-reference/unity/mathematics/uint3/xyyx.md)     | Swizzles the vector.                           |
| [xyyy](/engine/6000.5/script-reference/unity/mathematics/uint3/xyyy.md)     | Swizzles the vector.                           |
| [xyyz](/engine/6000.5/script-reference/unity/mathematics/uint3/xyyz.md)     | Swizzles the vector.                           |
| [xyz](/engine/6000.5/script-reference/unity/mathematics/uint3/xyz.md)       | Swizzles the vector.                           |
| [xyzx](/engine/6000.5/script-reference/unity/mathematics/uint3/xyzx.md)     | Swizzles the vector.                           |
| [xyzy](/engine/6000.5/script-reference/unity/mathematics/uint3/xyzy.md)     | Swizzles the vector.                           |
| [xyzz](/engine/6000.5/script-reference/unity/mathematics/uint3/xyzz.md)     | Swizzles the vector.                           |
| [xz](/engine/6000.5/script-reference/unity/mathematics/uint3/xz.md)         | Swizzles the vector.                           |
| [xzx](/engine/6000.5/script-reference/unity/mathematics/uint3/xzx.md)       | Swizzles the vector.                           |
| [xzxx](/engine/6000.5/script-reference/unity/mathematics/uint3/xzxx.md)     | Swizzles the vector.                           |
| [xzxy](/engine/6000.5/script-reference/unity/mathematics/uint3/xzxy.md)     | Swizzles the vector.                           |
| [xzxz](/engine/6000.5/script-reference/unity/mathematics/uint3/xzxz.md)     | Swizzles the vector.                           |
| [xzy](/engine/6000.5/script-reference/unity/mathematics/uint3/xzy.md)       | Swizzles the vector.                           |
| [xzyx](/engine/6000.5/script-reference/unity/mathematics/uint3/xzyx.md)     | Swizzles the vector.                           |
| [xzyy](/engine/6000.5/script-reference/unity/mathematics/uint3/xzyy.md)     | Swizzles the vector.                           |
| [xzyz](/engine/6000.5/script-reference/unity/mathematics/uint3/xzyz.md)     | Swizzles the vector.                           |
| [xzz](/engine/6000.5/script-reference/unity/mathematics/uint3/xzz.md)       | Swizzles the vector.                           |
| [xzzx](/engine/6000.5/script-reference/unity/mathematics/uint3/xzzx.md)     | Swizzles the vector.                           |
| [xzzy](/engine/6000.5/script-reference/unity/mathematics/uint3/xzzy.md)     | Swizzles the vector.                           |
| [xzzz](/engine/6000.5/script-reference/unity/mathematics/uint3/xzzz.md)     | Swizzles the vector.                           |
| [yx](/engine/6000.5/script-reference/unity/mathematics/uint3/yx.md)         | Swizzles the vector.                           |
| [yxx](/engine/6000.5/script-reference/unity/mathematics/uint3/yxx.md)       | Swizzles the vector.                           |
| [yxxx](/engine/6000.5/script-reference/unity/mathematics/uint3/yxxx.md)     | Swizzles the vector.                           |
| [yxxy](/engine/6000.5/script-reference/unity/mathematics/uint3/yxxy.md)     | Swizzles the vector.                           |
| [yxxz](/engine/6000.5/script-reference/unity/mathematics/uint3/yxxz.md)     | Swizzles the vector.                           |
| [yxy](/engine/6000.5/script-reference/unity/mathematics/uint3/yxy.md)       | Swizzles the vector.                           |
| [yxyx](/engine/6000.5/script-reference/unity/mathematics/uint3/yxyx.md)     | Swizzles the vector.                           |
| [yxyy](/engine/6000.5/script-reference/unity/mathematics/uint3/yxyy.md)     | Swizzles the vector.                           |
| [yxyz](/engine/6000.5/script-reference/unity/mathematics/uint3/yxyz.md)     | Swizzles the vector.                           |
| [yxz](/engine/6000.5/script-reference/unity/mathematics/uint3/yxz.md)       | Swizzles the vector.                           |
| [yxzx](/engine/6000.5/script-reference/unity/mathematics/uint3/yxzx.md)     | Swizzles the vector.                           |
| [yxzy](/engine/6000.5/script-reference/unity/mathematics/uint3/yxzy.md)     | Swizzles the vector.                           |
| [yxzz](/engine/6000.5/script-reference/unity/mathematics/uint3/yxzz.md)     | Swizzles the vector.                           |
| [yy](/engine/6000.5/script-reference/unity/mathematics/uint3/yy.md)         | Swizzles the vector.                           |
| [yyx](/engine/6000.5/script-reference/unity/mathematics/uint3/yyx.md)       | Swizzles the vector.                           |
| [yyxx](/engine/6000.5/script-reference/unity/mathematics/uint3/yyxx.md)     | Swizzles the vector.                           |
| [yyxy](/engine/6000.5/script-reference/unity/mathematics/uint3/yyxy.md)     | Swizzles the vector.                           |
| [yyxz](/engine/6000.5/script-reference/unity/mathematics/uint3/yyxz.md)     | Swizzles the vector.                           |
| [yyy](/engine/6000.5/script-reference/unity/mathematics/uint3/yyy.md)       | Swizzles the vector.                           |
| [yyyx](/engine/6000.5/script-reference/unity/mathematics/uint3/yyyx.md)     | Swizzles the vector.                           |
| [yyyy](/engine/6000.5/script-reference/unity/mathematics/uint3/yyyy.md)     | Swizzles the vector.                           |
| [yyyz](/engine/6000.5/script-reference/unity/mathematics/uint3/yyyz.md)     | Swizzles the vector.                           |
| [yyz](/engine/6000.5/script-reference/unity/mathematics/uint3/yyz.md)       | Swizzles the vector.                           |
| [yyzx](/engine/6000.5/script-reference/unity/mathematics/uint3/yyzx.md)     | Swizzles the vector.                           |
| [yyzy](/engine/6000.5/script-reference/unity/mathematics/uint3/yyzy.md)     | Swizzles the vector.                           |
| [yyzz](/engine/6000.5/script-reference/unity/mathematics/uint3/yyzz.md)     | Swizzles the vector.                           |
| [yz](/engine/6000.5/script-reference/unity/mathematics/uint3/yz.md)         | Swizzles the vector.                           |
| [yzx](/engine/6000.5/script-reference/unity/mathematics/uint3/yzx.md)       | Swizzles the vector.                           |
| [yzxx](/engine/6000.5/script-reference/unity/mathematics/uint3/yzxx.md)     | Swizzles the vector.                           |
| [yzxy](/engine/6000.5/script-reference/unity/mathematics/uint3/yzxy.md)     | Swizzles the vector.                           |
| [yzxz](/engine/6000.5/script-reference/unity/mathematics/uint3/yzxz.md)     | Swizzles the vector.                           |
| [yzy](/engine/6000.5/script-reference/unity/mathematics/uint3/yzy.md)       | Swizzles the vector.                           |
| [yzyx](/engine/6000.5/script-reference/unity/mathematics/uint3/yzyx.md)     | Swizzles the vector.                           |
| [yzyy](/engine/6000.5/script-reference/unity/mathematics/uint3/yzyy.md)     | Swizzles the vector.                           |
| [yzyz](/engine/6000.5/script-reference/unity/mathematics/uint3/yzyz.md)     | Swizzles the vector.                           |
| [yzz](/engine/6000.5/script-reference/unity/mathematics/uint3/yzz.md)       | Swizzles the vector.                           |
| [yzzx](/engine/6000.5/script-reference/unity/mathematics/uint3/yzzx.md)     | Swizzles the vector.                           |
| [yzzy](/engine/6000.5/script-reference/unity/mathematics/uint3/yzzy.md)     | Swizzles the vector.                           |
| [yzzz](/engine/6000.5/script-reference/unity/mathematics/uint3/yzzz.md)     | Swizzles the vector.                           |
| [zx](/engine/6000.5/script-reference/unity/mathematics/uint3/zx.md)         | Swizzles the vector.                           |
| [zxx](/engine/6000.5/script-reference/unity/mathematics/uint3/zxx.md)       | Swizzles the vector.                           |
| [zxxx](/engine/6000.5/script-reference/unity/mathematics/uint3/zxxx.md)     | Swizzles the vector.                           |
| [zxxy](/engine/6000.5/script-reference/unity/mathematics/uint3/zxxy.md)     | Swizzles the vector.                           |
| [zxxz](/engine/6000.5/script-reference/unity/mathematics/uint3/zxxz.md)     | Swizzles the vector.                           |
| [zxy](/engine/6000.5/script-reference/unity/mathematics/uint3/zxy.md)       | Swizzles the vector.                           |
| [zxyx](/engine/6000.5/script-reference/unity/mathematics/uint3/zxyx.md)     | Swizzles the vector.                           |
| [zxyy](/engine/6000.5/script-reference/unity/mathematics/uint3/zxyy.md)     | Swizzles the vector.                           |
| [zxyz](/engine/6000.5/script-reference/unity/mathematics/uint3/zxyz.md)     | Swizzles the vector.                           |
| [zxz](/engine/6000.5/script-reference/unity/mathematics/uint3/zxz.md)       | Swizzles the vector.                           |
| [zxzx](/engine/6000.5/script-reference/unity/mathematics/uint3/zxzx.md)     | Swizzles the vector.                           |
| [zxzy](/engine/6000.5/script-reference/unity/mathematics/uint3/zxzy.md)     | Swizzles the vector.                           |
| [zxzz](/engine/6000.5/script-reference/unity/mathematics/uint3/zxzz.md)     | Swizzles the vector.                           |
| [zy](/engine/6000.5/script-reference/unity/mathematics/uint3/zy.md)         | Swizzles the vector.                           |
| [zyx](/engine/6000.5/script-reference/unity/mathematics/uint3/zyx.md)       | Swizzles the vector.                           |
| [zyxx](/engine/6000.5/script-reference/unity/mathematics/uint3/zyxx.md)     | Swizzles the vector.                           |
| [zyxy](/engine/6000.5/script-reference/unity/mathematics/uint3/zyxy.md)     | Swizzles the vector.                           |
| [zyxz](/engine/6000.5/script-reference/unity/mathematics/uint3/zyxz.md)     | Swizzles the vector.                           |
| [zyy](/engine/6000.5/script-reference/unity/mathematics/uint3/zyy.md)       | Swizzles the vector.                           |
| [zyyx](/engine/6000.5/script-reference/unity/mathematics/uint3/zyyx.md)     | Swizzles the vector.                           |
| [zyyy](/engine/6000.5/script-reference/unity/mathematics/uint3/zyyy.md)     | Swizzles the vector.                           |
| [zyyz](/engine/6000.5/script-reference/unity/mathematics/uint3/zyyz.md)     | Swizzles the vector.                           |
| [zyz](/engine/6000.5/script-reference/unity/mathematics/uint3/zyz.md)       | Swizzles the vector.                           |
| [zyzx](/engine/6000.5/script-reference/unity/mathematics/uint3/zyzx.md)     | Swizzles the vector.                           |
| [zyzy](/engine/6000.5/script-reference/unity/mathematics/uint3/zyzy.md)     | Swizzles the vector.                           |
| [zyzz](/engine/6000.5/script-reference/unity/mathematics/uint3/zyzz.md)     | Swizzles the vector.                           |
| [zz](/engine/6000.5/script-reference/unity/mathematics/uint3/zz.md)         | Swizzles the vector.                           |
| [zzx](/engine/6000.5/script-reference/unity/mathematics/uint3/zzx.md)       | Swizzles the vector.                           |
| [zzxx](/engine/6000.5/script-reference/unity/mathematics/uint3/zzxx.md)     | Swizzles the vector.                           |
| [zzxy](/engine/6000.5/script-reference/unity/mathematics/uint3/zzxy.md)     | Swizzles the vector.                           |
| [zzxz](/engine/6000.5/script-reference/unity/mathematics/uint3/zzxz.md)     | Swizzles the vector.                           |
| [zzy](/engine/6000.5/script-reference/unity/mathematics/uint3/zzy.md)       | Swizzles the vector.                           |
| [zzyx](/engine/6000.5/script-reference/unity/mathematics/uint3/zzyx.md)     | Swizzles the vector.                           |
| [zzyy](/engine/6000.5/script-reference/unity/mathematics/uint3/zzyy.md)     | Swizzles the vector.                           |
| [zzyz](/engine/6000.5/script-reference/unity/mathematics/uint3/zzyz.md)     | Swizzles the vector.                           |
| [zzz](/engine/6000.5/script-reference/unity/mathematics/uint3/zzz.md)       | Swizzles the vector.                           |
| [zzzx](/engine/6000.5/script-reference/unity/mathematics/uint3/zzzx.md)     | Swizzles the vector.                           |
| [zzzy](/engine/6000.5/script-reference/unity/mathematics/uint3/zzzy.md)     | Swizzles the vector.                           |
| [zzzz](/engine/6000.5/script-reference/unity/mathematics/uint3/zzzz.md)     | Swizzles the vector.                           |

## Methods

| Method                                                                                | Description                                                           |
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [Equals](/engine/6000.5/script-reference/unity/mathematics/uint3/equals.md)           | Returns true if the uint3 is equal to a given uint3, false otherwise. |
| [GetHashCode](/engine/6000.5/script-reference/unity/mathematics/uint3/gethashcode.md) | Returns a hash code for the uint3.                                    |
| [ToString](/engine/6000.5/script-reference/unity/mathematics/uint3/tostring.md)       | Returns a string representation of the uint3.                         |

## Operators

| Operator                                                                                        | Description                                                                                                                  |
| ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| [operator +](/engine/6000.5/script-reference/unity/mathematics/uint3/op-addition.md)            | Returns the result of a componentwise addition operation on a uint value and a uint3 vector.                                 |
| [operator &](/engine/6000.5/script-reference/unity/mathematics/uint3/op-bitwiseand.md)          | Returns the result of a componentwise bitwise and operation on a uint value and a uint3 vector.                              |
| [operator \|](/engine/6000.5/script-reference/unity/mathematics/uint3/op-bitwiseor.md)          | Returns the result of a componentwise bitwise or operation on a uint value and a uint3 vector.                               |
| [operator --](/engine/6000.5/script-reference/unity/mathematics/uint3/op-decrement.md)          | Returns the result of a componentwise decrement operation on a uint3 vector.                                                 |
| [operator /](/engine/6000.5/script-reference/unity/mathematics/uint3/op-division.md)            | Returns the result of a componentwise division operation on a uint value and a uint3 vector.                                 |
| [operator ==](/engine/6000.5/script-reference/unity/mathematics/uint3/op-equality.md)           | Returns the result of a componentwise equality operation on a uint value and a uint3 vector.                                 |
| [operator ^](/engine/6000.5/script-reference/unity/mathematics/uint3/op-exclusiveor.md)         | Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint3 vector.                     |
| [uint3](/engine/6000.5/script-reference/unity/mathematics/uint3/op-explicit.md)                 | Explicitly converts a single bool value to a uint3 vector by converting it to uint and assigning it to every component.      |
| [operator >](/engine/6000.5/script-reference/unity/mathematics/uint3/op-greaterthan.md)         | Returns the result of a componentwise greater than operation on a uint value and a uint3 vector.                             |
| [operator >=](/engine/6000.5/script-reference/unity/mathematics/uint3/op-greaterthanorequal.md) | Returns the result of a componentwise greater or equal operation on a uint value and a uint3 vector.                         |
| [operator ++](/engine/6000.5/script-reference/unity/mathematics/uint3/op-increment.md)          | Returns the result of a componentwise increment operation on a uint3 vector.                                                 |
| [operator !=](/engine/6000.5/script-reference/unity/mathematics/uint3/op-inequality.md)         | Returns the result of a componentwise not equal operation on a uint value and a uint3 vector.                                |
| [operator \<\<](/engine/6000.5/script-reference/unity/mathematics/uint3/op-leftshift.md)        | Returns the result of a componentwise left shift operation on a uint3 vector by a number of bits specified by a single int.  |
| [operator \<](/engine/6000.5/script-reference/unity/mathematics/uint3/op-lessthan.md)           | Returns the result of a componentwise less than operation on a uint value and a uint3 vector.                                |
| [operator \<=](/engine/6000.5/script-reference/unity/mathematics/uint3/op-lessthanorequal.md)   | Returns the result of a componentwise less or equal operation on a uint value and a uint3 vector.                            |
| [operator %](/engine/6000.5/script-reference/unity/mathematics/uint3/op-modulus.md)             | Returns the result of a componentwise modulus operation on a uint value and a uint3 vector.                                  |
| [operator \*](/engine/6000.5/script-reference/unity/mathematics/uint3/op-multiply.md)           | Returns the result of a componentwise multiplication operation on a uint value and a uint3 vector.                           |
| [operator \~](/engine/6000.5/script-reference/unity/mathematics/uint3/op-onescomplement.md)     | Returns the result of a componentwise bitwise not operation on a uint3 vector.                                               |
| [operator >>](/engine/6000.5/script-reference/unity/mathematics/uint3/op-rightshift.md)         | Returns the result of a componentwise right shift operation on a uint3 vector by a number of bits specified by a single int. |
| [operator -](/engine/6000.5/script-reference/unity/mathematics/uint3/op-subtraction.md)         | Returns the result of a componentwise subtraction operation on a uint value and a uint3 vector.                              |
