# half4

> A 4 component vector of halfs.

## Definition

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

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

## Fields

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

## Static Fields

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

## Constructors

| Constructor                                                                                                                                                                                        | Description                                                                                                        |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [half4(System.Double)](/engine/6000.6/script-reference/unity/mathematics/half4/ctor.md#half4\(double\))                                                                                            | Constructs a half4 vector from a single double value by converting it to half and assigning it to every component. |
| [half4(System.Single)](/engine/6000.6/script-reference/unity/mathematics/half4/ctor.md#half4\(float\))                                                                                             | Constructs a half4 vector from a single float value by converting it to half and assigning it to every component.  |
| [half4(Unity.Mathematics.double4)](/engine/6000.6/script-reference/unity/mathematics/half4/ctor.md#half4\(double4\))                                                                               | Constructs a half4 vector from a double4 vector by componentwise conversion.                                       |
| [half4(Unity.Mathematics.float4)](/engine/6000.6/script-reference/unity/mathematics/half4/ctor.md#half4\(float4\))                                                                                 | Constructs a half4 vector from a float4 vector by componentwise conversion.                                        |
| [half4(Unity.Mathematics.half)](/engine/6000.6/script-reference/unity/mathematics/half4/ctor.md#half4\(half\))                                                                                     | Constructs a half4 vector from a single half value by assigning it to every component.                             |
| [half4(Unity.Mathematics.half,Unity.Mathematics.half,Unity.Mathematics.half,Unity.Mathematics.half)](/engine/6000.6/script-reference/unity/mathematics/half4/ctor.md#half4\(half-half-half-half\)) | Constructs a half4 vector from four half values.                                                                   |
| [half4(Unity.Mathematics.half,Unity.Mathematics.half,Unity.Mathematics.half2)](/engine/6000.6/script-reference/unity/mathematics/half4/ctor.md#half4\(half-half-half2\))                           | Constructs a half4 vector from two half values and a half2 vector.                                                 |
| [half4(Unity.Mathematics.half,Unity.Mathematics.half2,Unity.Mathematics.half)](/engine/6000.6/script-reference/unity/mathematics/half4/ctor.md#half4\(half-half2-half\))                           | Constructs a half4 vector from a half value, a half2 vector and a half value.                                      |
| [half4(Unity.Mathematics.half,Unity.Mathematics.half3)](/engine/6000.6/script-reference/unity/mathematics/half4/ctor.md#half4\(half-half3\))                                                       | Constructs a half4 vector from a half value and a half3 vector.                                                    |
| [half4(Unity.Mathematics.half2,Unity.Mathematics.half,Unity.Mathematics.half)](/engine/6000.6/script-reference/unity/mathematics/half4/ctor.md#half4\(half2-half-half\))                           | Constructs a half4 vector from a half2 vector and two half values.                                                 |
| [half4(Unity.Mathematics.half2,Unity.Mathematics.half2)](/engine/6000.6/script-reference/unity/mathematics/half4/ctor.md#half4\(half2-half2\))                                                     | Constructs a half4 vector from two half2 vectors.                                                                  |
| [half4(Unity.Mathematics.half3,Unity.Mathematics.half)](/engine/6000.6/script-reference/unity/mathematics/half4/ctor.md#half4\(half3-half\))                                                       | Constructs a half4 vector from a half3 vector and a half value.                                                    |
| [half4(Unity.Mathematics.half4)](/engine/6000.6/script-reference/unity/mathematics/half4/ctor.md#half4\(half4\))                                                                                   | Constructs a half4 vector from a half4 vector.                                                                     |

## Properties

| Property                                                                    | Description                                    |
| --------------------------------------------------------------------------- | ---------------------------------------------- |
| [this\[\]](/engine/6000.6/script-reference/unity/mathematics/half4/item.md) | Returns the half element at a specified index. |
| [ww](/engine/6000.6/script-reference/unity/mathematics/half4/ww.md)         | Swizzles the vector.                           |
| [www](/engine/6000.6/script-reference/unity/mathematics/half4/www.md)       | Swizzles the vector.                           |
| [wwww](/engine/6000.6/script-reference/unity/mathematics/half4/wwww.md)     | Swizzles the vector.                           |
| [wwwx](/engine/6000.6/script-reference/unity/mathematics/half4/wwwx.md)     | Swizzles the vector.                           |
| [wwwy](/engine/6000.6/script-reference/unity/mathematics/half4/wwwy.md)     | Swizzles the vector.                           |
| [wwwz](/engine/6000.6/script-reference/unity/mathematics/half4/wwwz.md)     | Swizzles the vector.                           |
| [wwx](/engine/6000.6/script-reference/unity/mathematics/half4/wwx.md)       | Swizzles the vector.                           |
| [wwxw](/engine/6000.6/script-reference/unity/mathematics/half4/wwxw.md)     | Swizzles the vector.                           |
| [wwxx](/engine/6000.6/script-reference/unity/mathematics/half4/wwxx.md)     | Swizzles the vector.                           |
| [wwxy](/engine/6000.6/script-reference/unity/mathematics/half4/wwxy.md)     | Swizzles the vector.                           |
| [wwxz](/engine/6000.6/script-reference/unity/mathematics/half4/wwxz.md)     | Swizzles the vector.                           |
| [wwy](/engine/6000.6/script-reference/unity/mathematics/half4/wwy.md)       | Swizzles the vector.                           |
| [wwyw](/engine/6000.6/script-reference/unity/mathematics/half4/wwyw.md)     | Swizzles the vector.                           |
| [wwyx](/engine/6000.6/script-reference/unity/mathematics/half4/wwyx.md)     | Swizzles the vector.                           |
| [wwyy](/engine/6000.6/script-reference/unity/mathematics/half4/wwyy.md)     | Swizzles the vector.                           |
| [wwyz](/engine/6000.6/script-reference/unity/mathematics/half4/wwyz.md)     | Swizzles the vector.                           |
| [wwz](/engine/6000.6/script-reference/unity/mathematics/half4/wwz.md)       | Swizzles the vector.                           |
| [wwzw](/engine/6000.6/script-reference/unity/mathematics/half4/wwzw.md)     | Swizzles the vector.                           |
| [wwzx](/engine/6000.6/script-reference/unity/mathematics/half4/wwzx.md)     | Swizzles the vector.                           |
| [wwzy](/engine/6000.6/script-reference/unity/mathematics/half4/wwzy.md)     | Swizzles the vector.                           |
| [wwzz](/engine/6000.6/script-reference/unity/mathematics/half4/wwzz.md)     | Swizzles the vector.                           |
| [wx](/engine/6000.6/script-reference/unity/mathematics/half4/wx.md)         | Swizzles the vector.                           |
| [wxw](/engine/6000.6/script-reference/unity/mathematics/half4/wxw.md)       | Swizzles the vector.                           |
| [wxww](/engine/6000.6/script-reference/unity/mathematics/half4/wxww.md)     | Swizzles the vector.                           |
| [wxwx](/engine/6000.6/script-reference/unity/mathematics/half4/wxwx.md)     | Swizzles the vector.                           |
| [wxwy](/engine/6000.6/script-reference/unity/mathematics/half4/wxwy.md)     | Swizzles the vector.                           |
| [wxwz](/engine/6000.6/script-reference/unity/mathematics/half4/wxwz.md)     | Swizzles the vector.                           |
| [wxx](/engine/6000.6/script-reference/unity/mathematics/half4/wxx.md)       | Swizzles the vector.                           |
| [wxxw](/engine/6000.6/script-reference/unity/mathematics/half4/wxxw.md)     | Swizzles the vector.                           |
| [wxxx](/engine/6000.6/script-reference/unity/mathematics/half4/wxxx.md)     | Swizzles the vector.                           |
| [wxxy](/engine/6000.6/script-reference/unity/mathematics/half4/wxxy.md)     | Swizzles the vector.                           |
| [wxxz](/engine/6000.6/script-reference/unity/mathematics/half4/wxxz.md)     | Swizzles the vector.                           |
| [wxy](/engine/6000.6/script-reference/unity/mathematics/half4/wxy.md)       | Swizzles the vector.                           |
| [wxyw](/engine/6000.6/script-reference/unity/mathematics/half4/wxyw.md)     | Swizzles the vector.                           |
| [wxyx](/engine/6000.6/script-reference/unity/mathematics/half4/wxyx.md)     | Swizzles the vector.                           |
| [wxyy](/engine/6000.6/script-reference/unity/mathematics/half4/wxyy.md)     | Swizzles the vector.                           |
| [wxyz](/engine/6000.6/script-reference/unity/mathematics/half4/wxyz.md)     | Swizzles the vector.                           |
| [wxz](/engine/6000.6/script-reference/unity/mathematics/half4/wxz.md)       | Swizzles the vector.                           |
| [wxzw](/engine/6000.6/script-reference/unity/mathematics/half4/wxzw.md)     | Swizzles the vector.                           |
| [wxzx](/engine/6000.6/script-reference/unity/mathematics/half4/wxzx.md)     | Swizzles the vector.                           |
| [wxzy](/engine/6000.6/script-reference/unity/mathematics/half4/wxzy.md)     | Swizzles the vector.                           |
| [wxzz](/engine/6000.6/script-reference/unity/mathematics/half4/wxzz.md)     | Swizzles the vector.                           |
| [wy](/engine/6000.6/script-reference/unity/mathematics/half4/wy.md)         | Swizzles the vector.                           |
| [wyw](/engine/6000.6/script-reference/unity/mathematics/half4/wyw.md)       | Swizzles the vector.                           |
| [wyww](/engine/6000.6/script-reference/unity/mathematics/half4/wyww.md)     | Swizzles the vector.                           |
| [wywx](/engine/6000.6/script-reference/unity/mathematics/half4/wywx.md)     | Swizzles the vector.                           |
| [wywy](/engine/6000.6/script-reference/unity/mathematics/half4/wywy.md)     | Swizzles the vector.                           |
| [wywz](/engine/6000.6/script-reference/unity/mathematics/half4/wywz.md)     | Swizzles the vector.                           |
| [wyx](/engine/6000.6/script-reference/unity/mathematics/half4/wyx.md)       | Swizzles the vector.                           |
| [wyxw](/engine/6000.6/script-reference/unity/mathematics/half4/wyxw.md)     | Swizzles the vector.                           |
| [wyxx](/engine/6000.6/script-reference/unity/mathematics/half4/wyxx.md)     | Swizzles the vector.                           |
| [wyxy](/engine/6000.6/script-reference/unity/mathematics/half4/wyxy.md)     | Swizzles the vector.                           |
| [wyxz](/engine/6000.6/script-reference/unity/mathematics/half4/wyxz.md)     | Swizzles the vector.                           |
| [wyy](/engine/6000.6/script-reference/unity/mathematics/half4/wyy.md)       | Swizzles the vector.                           |
| [wyyw](/engine/6000.6/script-reference/unity/mathematics/half4/wyyw.md)     | Swizzles the vector.                           |
| [wyyx](/engine/6000.6/script-reference/unity/mathematics/half4/wyyx.md)     | Swizzles the vector.                           |
| [wyyy](/engine/6000.6/script-reference/unity/mathematics/half4/wyyy.md)     | Swizzles the vector.                           |
| [wyyz](/engine/6000.6/script-reference/unity/mathematics/half4/wyyz.md)     | Swizzles the vector.                           |
| [wyz](/engine/6000.6/script-reference/unity/mathematics/half4/wyz.md)       | Swizzles the vector.                           |
| [wyzw](/engine/6000.6/script-reference/unity/mathematics/half4/wyzw.md)     | Swizzles the vector.                           |
| [wyzx](/engine/6000.6/script-reference/unity/mathematics/half4/wyzx.md)     | Swizzles the vector.                           |
| [wyzy](/engine/6000.6/script-reference/unity/mathematics/half4/wyzy.md)     | Swizzles the vector.                           |
| [wyzz](/engine/6000.6/script-reference/unity/mathematics/half4/wyzz.md)     | Swizzles the vector.                           |
| [wz](/engine/6000.6/script-reference/unity/mathematics/half4/wz.md)         | Swizzles the vector.                           |
| [wzw](/engine/6000.6/script-reference/unity/mathematics/half4/wzw.md)       | Swizzles the vector.                           |
| [wzww](/engine/6000.6/script-reference/unity/mathematics/half4/wzww.md)     | Swizzles the vector.                           |
| [wzwx](/engine/6000.6/script-reference/unity/mathematics/half4/wzwx.md)     | Swizzles the vector.                           |
| [wzwy](/engine/6000.6/script-reference/unity/mathematics/half4/wzwy.md)     | Swizzles the vector.                           |
| [wzwz](/engine/6000.6/script-reference/unity/mathematics/half4/wzwz.md)     | Swizzles the vector.                           |
| [wzx](/engine/6000.6/script-reference/unity/mathematics/half4/wzx.md)       | Swizzles the vector.                           |
| [wzxw](/engine/6000.6/script-reference/unity/mathematics/half4/wzxw.md)     | Swizzles the vector.                           |
| [wzxx](/engine/6000.6/script-reference/unity/mathematics/half4/wzxx.md)     | Swizzles the vector.                           |
| [wzxy](/engine/6000.6/script-reference/unity/mathematics/half4/wzxy.md)     | Swizzles the vector.                           |
| [wzxz](/engine/6000.6/script-reference/unity/mathematics/half4/wzxz.md)     | Swizzles the vector.                           |
| [wzy](/engine/6000.6/script-reference/unity/mathematics/half4/wzy.md)       | Swizzles the vector.                           |
| [wzyw](/engine/6000.6/script-reference/unity/mathematics/half4/wzyw.md)     | Swizzles the vector.                           |
| [wzyx](/engine/6000.6/script-reference/unity/mathematics/half4/wzyx.md)     | Swizzles the vector.                           |
| [wzyy](/engine/6000.6/script-reference/unity/mathematics/half4/wzyy.md)     | Swizzles the vector.                           |
| [wzyz](/engine/6000.6/script-reference/unity/mathematics/half4/wzyz.md)     | Swizzles the vector.                           |
| [wzz](/engine/6000.6/script-reference/unity/mathematics/half4/wzz.md)       | Swizzles the vector.                           |
| [wzzw](/engine/6000.6/script-reference/unity/mathematics/half4/wzzw.md)     | Swizzles the vector.                           |
| [wzzx](/engine/6000.6/script-reference/unity/mathematics/half4/wzzx.md)     | Swizzles the vector.                           |
| [wzzy](/engine/6000.6/script-reference/unity/mathematics/half4/wzzy.md)     | Swizzles the vector.                           |
| [wzzz](/engine/6000.6/script-reference/unity/mathematics/half4/wzzz.md)     | Swizzles the vector.                           |
| [xw](/engine/6000.6/script-reference/unity/mathematics/half4/xw.md)         | Swizzles the vector.                           |
| [xww](/engine/6000.6/script-reference/unity/mathematics/half4/xww.md)       | Swizzles the vector.                           |
| [xwww](/engine/6000.6/script-reference/unity/mathematics/half4/xwww.md)     | Swizzles the vector.                           |
| [xwwx](/engine/6000.6/script-reference/unity/mathematics/half4/xwwx.md)     | Swizzles the vector.                           |
| [xwwy](/engine/6000.6/script-reference/unity/mathematics/half4/xwwy.md)     | Swizzles the vector.                           |
| [xwwz](/engine/6000.6/script-reference/unity/mathematics/half4/xwwz.md)     | Swizzles the vector.                           |
| [xwx](/engine/6000.6/script-reference/unity/mathematics/half4/xwx.md)       | Swizzles the vector.                           |
| [xwxw](/engine/6000.6/script-reference/unity/mathematics/half4/xwxw.md)     | Swizzles the vector.                           |
| [xwxx](/engine/6000.6/script-reference/unity/mathematics/half4/xwxx.md)     | Swizzles the vector.                           |
| [xwxy](/engine/6000.6/script-reference/unity/mathematics/half4/xwxy.md)     | Swizzles the vector.                           |
| [xwxz](/engine/6000.6/script-reference/unity/mathematics/half4/xwxz.md)     | Swizzles the vector.                           |
| [xwy](/engine/6000.6/script-reference/unity/mathematics/half4/xwy.md)       | Swizzles the vector.                           |
| [xwyw](/engine/6000.6/script-reference/unity/mathematics/half4/xwyw.md)     | Swizzles the vector.                           |
| [xwyx](/engine/6000.6/script-reference/unity/mathematics/half4/xwyx.md)     | Swizzles the vector.                           |
| [xwyy](/engine/6000.6/script-reference/unity/mathematics/half4/xwyy.md)     | Swizzles the vector.                           |
| [xwyz](/engine/6000.6/script-reference/unity/mathematics/half4/xwyz.md)     | Swizzles the vector.                           |
| [xwz](/engine/6000.6/script-reference/unity/mathematics/half4/xwz.md)       | Swizzles the vector.                           |
| [xwzw](/engine/6000.6/script-reference/unity/mathematics/half4/xwzw.md)     | Swizzles the vector.                           |
| [xwzx](/engine/6000.6/script-reference/unity/mathematics/half4/xwzx.md)     | Swizzles the vector.                           |
| [xwzy](/engine/6000.6/script-reference/unity/mathematics/half4/xwzy.md)     | Swizzles the vector.                           |
| [xwzz](/engine/6000.6/script-reference/unity/mathematics/half4/xwzz.md)     | Swizzles the vector.                           |
| [xx](/engine/6000.6/script-reference/unity/mathematics/half4/xx.md)         | Swizzles the vector.                           |
| [xxw](/engine/6000.6/script-reference/unity/mathematics/half4/xxw.md)       | Swizzles the vector.                           |
| [xxww](/engine/6000.6/script-reference/unity/mathematics/half4/xxww.md)     | Swizzles the vector.                           |
| [xxwx](/engine/6000.6/script-reference/unity/mathematics/half4/xxwx.md)     | Swizzles the vector.                           |
| [xxwy](/engine/6000.6/script-reference/unity/mathematics/half4/xxwy.md)     | Swizzles the vector.                           |
| [xxwz](/engine/6000.6/script-reference/unity/mathematics/half4/xxwz.md)     | Swizzles the vector.                           |
| [xxx](/engine/6000.6/script-reference/unity/mathematics/half4/xxx.md)       | Swizzles the vector.                           |
| [xxxw](/engine/6000.6/script-reference/unity/mathematics/half4/xxxw.md)     | Swizzles the vector.                           |
| [xxxx](/engine/6000.6/script-reference/unity/mathematics/half4/xxxx.md)     | Swizzles the vector.                           |
| [xxxy](/engine/6000.6/script-reference/unity/mathematics/half4/xxxy.md)     | Swizzles the vector.                           |
| [xxxz](/engine/6000.6/script-reference/unity/mathematics/half4/xxxz.md)     | Swizzles the vector.                           |
| [xxy](/engine/6000.6/script-reference/unity/mathematics/half4/xxy.md)       | Swizzles the vector.                           |
| [xxyw](/engine/6000.6/script-reference/unity/mathematics/half4/xxyw.md)     | Swizzles the vector.                           |
| [xxyx](/engine/6000.6/script-reference/unity/mathematics/half4/xxyx.md)     | Swizzles the vector.                           |
| [xxyy](/engine/6000.6/script-reference/unity/mathematics/half4/xxyy.md)     | Swizzles the vector.                           |
| [xxyz](/engine/6000.6/script-reference/unity/mathematics/half4/xxyz.md)     | Swizzles the vector.                           |
| [xxz](/engine/6000.6/script-reference/unity/mathematics/half4/xxz.md)       | Swizzles the vector.                           |
| [xxzw](/engine/6000.6/script-reference/unity/mathematics/half4/xxzw.md)     | Swizzles the vector.                           |
| [xxzx](/engine/6000.6/script-reference/unity/mathematics/half4/xxzx.md)     | Swizzles the vector.                           |
| [xxzy](/engine/6000.6/script-reference/unity/mathematics/half4/xxzy.md)     | Swizzles the vector.                           |
| [xxzz](/engine/6000.6/script-reference/unity/mathematics/half4/xxzz.md)     | Swizzles the vector.                           |
| [xy](/engine/6000.6/script-reference/unity/mathematics/half4/xy.md)         | Swizzles the vector.                           |
| [xyw](/engine/6000.6/script-reference/unity/mathematics/half4/xyw.md)       | Swizzles the vector.                           |
| [xyww](/engine/6000.6/script-reference/unity/mathematics/half4/xyww.md)     | Swizzles the vector.                           |
| [xywx](/engine/6000.6/script-reference/unity/mathematics/half4/xywx.md)     | Swizzles the vector.                           |
| [xywy](/engine/6000.6/script-reference/unity/mathematics/half4/xywy.md)     | Swizzles the vector.                           |
| [xywz](/engine/6000.6/script-reference/unity/mathematics/half4/xywz.md)     | Swizzles the vector.                           |
| [xyx](/engine/6000.6/script-reference/unity/mathematics/half4/xyx.md)       | Swizzles the vector.                           |
| [xyxw](/engine/6000.6/script-reference/unity/mathematics/half4/xyxw.md)     | Swizzles the vector.                           |
| [xyxx](/engine/6000.6/script-reference/unity/mathematics/half4/xyxx.md)     | Swizzles the vector.                           |
| [xyxy](/engine/6000.6/script-reference/unity/mathematics/half4/xyxy.md)     | Swizzles the vector.                           |
| [xyxz](/engine/6000.6/script-reference/unity/mathematics/half4/xyxz.md)     | Swizzles the vector.                           |
| [xyy](/engine/6000.6/script-reference/unity/mathematics/half4/xyy.md)       | Swizzles the vector.                           |
| [xyyw](/engine/6000.6/script-reference/unity/mathematics/half4/xyyw.md)     | Swizzles the vector.                           |
| [xyyx](/engine/6000.6/script-reference/unity/mathematics/half4/xyyx.md)     | Swizzles the vector.                           |
| [xyyy](/engine/6000.6/script-reference/unity/mathematics/half4/xyyy.md)     | Swizzles the vector.                           |
| [xyyz](/engine/6000.6/script-reference/unity/mathematics/half4/xyyz.md)     | Swizzles the vector.                           |
| [xyz](/engine/6000.6/script-reference/unity/mathematics/half4/xyz.md)       | Swizzles the vector.                           |
| [xyzw](/engine/6000.6/script-reference/unity/mathematics/half4/xyzw.md)     | Swizzles the vector.                           |
| [xyzx](/engine/6000.6/script-reference/unity/mathematics/half4/xyzx.md)     | Swizzles the vector.                           |
| [xyzy](/engine/6000.6/script-reference/unity/mathematics/half4/xyzy.md)     | Swizzles the vector.                           |
| [xyzz](/engine/6000.6/script-reference/unity/mathematics/half4/xyzz.md)     | Swizzles the vector.                           |
| [xz](/engine/6000.6/script-reference/unity/mathematics/half4/xz.md)         | Swizzles the vector.                           |
| [xzw](/engine/6000.6/script-reference/unity/mathematics/half4/xzw.md)       | Swizzles the vector.                           |
| [xzww](/engine/6000.6/script-reference/unity/mathematics/half4/xzww.md)     | Swizzles the vector.                           |
| [xzwx](/engine/6000.6/script-reference/unity/mathematics/half4/xzwx.md)     | Swizzles the vector.                           |
| [xzwy](/engine/6000.6/script-reference/unity/mathematics/half4/xzwy.md)     | Swizzles the vector.                           |
| [xzwz](/engine/6000.6/script-reference/unity/mathematics/half4/xzwz.md)     | Swizzles the vector.                           |
| [xzx](/engine/6000.6/script-reference/unity/mathematics/half4/xzx.md)       | Swizzles the vector.                           |
| [xzxw](/engine/6000.6/script-reference/unity/mathematics/half4/xzxw.md)     | Swizzles the vector.                           |
| [xzxx](/engine/6000.6/script-reference/unity/mathematics/half4/xzxx.md)     | Swizzles the vector.                           |
| [xzxy](/engine/6000.6/script-reference/unity/mathematics/half4/xzxy.md)     | Swizzles the vector.                           |
| [xzxz](/engine/6000.6/script-reference/unity/mathematics/half4/xzxz.md)     | Swizzles the vector.                           |
| [xzy](/engine/6000.6/script-reference/unity/mathematics/half4/xzy.md)       | Swizzles the vector.                           |
| [xzyw](/engine/6000.6/script-reference/unity/mathematics/half4/xzyw.md)     | Swizzles the vector.                           |
| [xzyx](/engine/6000.6/script-reference/unity/mathematics/half4/xzyx.md)     | Swizzles the vector.                           |
| [xzyy](/engine/6000.6/script-reference/unity/mathematics/half4/xzyy.md)     | Swizzles the vector.                           |
| [xzyz](/engine/6000.6/script-reference/unity/mathematics/half4/xzyz.md)     | Swizzles the vector.                           |
| [xzz](/engine/6000.6/script-reference/unity/mathematics/half4/xzz.md)       | Swizzles the vector.                           |
| [xzzw](/engine/6000.6/script-reference/unity/mathematics/half4/xzzw.md)     | Swizzles the vector.                           |
| [xzzx](/engine/6000.6/script-reference/unity/mathematics/half4/xzzx.md)     | Swizzles the vector.                           |
| [xzzy](/engine/6000.6/script-reference/unity/mathematics/half4/xzzy.md)     | Swizzles the vector.                           |
| [xzzz](/engine/6000.6/script-reference/unity/mathematics/half4/xzzz.md)     | Swizzles the vector.                           |
| [yw](/engine/6000.6/script-reference/unity/mathematics/half4/yw.md)         | Swizzles the vector.                           |
| [yww](/engine/6000.6/script-reference/unity/mathematics/half4/yww.md)       | Swizzles the vector.                           |
| [ywww](/engine/6000.6/script-reference/unity/mathematics/half4/ywww.md)     | Swizzles the vector.                           |
| [ywwx](/engine/6000.6/script-reference/unity/mathematics/half4/ywwx.md)     | Swizzles the vector.                           |
| [ywwy](/engine/6000.6/script-reference/unity/mathematics/half4/ywwy.md)     | Swizzles the vector.                           |
| [ywwz](/engine/6000.6/script-reference/unity/mathematics/half4/ywwz.md)     | Swizzles the vector.                           |
| [ywx](/engine/6000.6/script-reference/unity/mathematics/half4/ywx.md)       | Swizzles the vector.                           |
| [ywxw](/engine/6000.6/script-reference/unity/mathematics/half4/ywxw.md)     | Swizzles the vector.                           |
| [ywxx](/engine/6000.6/script-reference/unity/mathematics/half4/ywxx.md)     | Swizzles the vector.                           |
| [ywxy](/engine/6000.6/script-reference/unity/mathematics/half4/ywxy.md)     | Swizzles the vector.                           |
| [ywxz](/engine/6000.6/script-reference/unity/mathematics/half4/ywxz.md)     | Swizzles the vector.                           |
| [ywy](/engine/6000.6/script-reference/unity/mathematics/half4/ywy.md)       | Swizzles the vector.                           |
| [ywyw](/engine/6000.6/script-reference/unity/mathematics/half4/ywyw.md)     | Swizzles the vector.                           |
| [ywyx](/engine/6000.6/script-reference/unity/mathematics/half4/ywyx.md)     | Swizzles the vector.                           |
| [ywyy](/engine/6000.6/script-reference/unity/mathematics/half4/ywyy.md)     | Swizzles the vector.                           |
| [ywyz](/engine/6000.6/script-reference/unity/mathematics/half4/ywyz.md)     | Swizzles the vector.                           |
| [ywz](/engine/6000.6/script-reference/unity/mathematics/half4/ywz.md)       | Swizzles the vector.                           |
| [ywzw](/engine/6000.6/script-reference/unity/mathematics/half4/ywzw.md)     | Swizzles the vector.                           |
| [ywzx](/engine/6000.6/script-reference/unity/mathematics/half4/ywzx.md)     | Swizzles the vector.                           |
| [ywzy](/engine/6000.6/script-reference/unity/mathematics/half4/ywzy.md)     | Swizzles the vector.                           |
| [ywzz](/engine/6000.6/script-reference/unity/mathematics/half4/ywzz.md)     | Swizzles the vector.                           |
| [yx](/engine/6000.6/script-reference/unity/mathematics/half4/yx.md)         | Swizzles the vector.                           |
| [yxw](/engine/6000.6/script-reference/unity/mathematics/half4/yxw.md)       | Swizzles the vector.                           |
| [yxww](/engine/6000.6/script-reference/unity/mathematics/half4/yxww.md)     | Swizzles the vector.                           |
| [yxwx](/engine/6000.6/script-reference/unity/mathematics/half4/yxwx.md)     | Swizzles the vector.                           |
| [yxwy](/engine/6000.6/script-reference/unity/mathematics/half4/yxwy.md)     | Swizzles the vector.                           |
| [yxwz](/engine/6000.6/script-reference/unity/mathematics/half4/yxwz.md)     | Swizzles the vector.                           |
| [yxx](/engine/6000.6/script-reference/unity/mathematics/half4/yxx.md)       | Swizzles the vector.                           |
| [yxxw](/engine/6000.6/script-reference/unity/mathematics/half4/yxxw.md)     | Swizzles the vector.                           |
| [yxxx](/engine/6000.6/script-reference/unity/mathematics/half4/yxxx.md)     | Swizzles the vector.                           |
| [yxxy](/engine/6000.6/script-reference/unity/mathematics/half4/yxxy.md)     | Swizzles the vector.                           |
| [yxxz](/engine/6000.6/script-reference/unity/mathematics/half4/yxxz.md)     | Swizzles the vector.                           |
| [yxy](/engine/6000.6/script-reference/unity/mathematics/half4/yxy.md)       | Swizzles the vector.                           |
| [yxyw](/engine/6000.6/script-reference/unity/mathematics/half4/yxyw.md)     | Swizzles the vector.                           |
| [yxyx](/engine/6000.6/script-reference/unity/mathematics/half4/yxyx.md)     | Swizzles the vector.                           |
| [yxyy](/engine/6000.6/script-reference/unity/mathematics/half4/yxyy.md)     | Swizzles the vector.                           |
| [yxyz](/engine/6000.6/script-reference/unity/mathematics/half4/yxyz.md)     | Swizzles the vector.                           |
| [yxz](/engine/6000.6/script-reference/unity/mathematics/half4/yxz.md)       | Swizzles the vector.                           |
| [yxzw](/engine/6000.6/script-reference/unity/mathematics/half4/yxzw.md)     | Swizzles the vector.                           |
| [yxzx](/engine/6000.6/script-reference/unity/mathematics/half4/yxzx.md)     | Swizzles the vector.                           |
| [yxzy](/engine/6000.6/script-reference/unity/mathematics/half4/yxzy.md)     | Swizzles the vector.                           |
| [yxzz](/engine/6000.6/script-reference/unity/mathematics/half4/yxzz.md)     | Swizzles the vector.                           |
| [yy](/engine/6000.6/script-reference/unity/mathematics/half4/yy.md)         | Swizzles the vector.                           |
| [yyw](/engine/6000.6/script-reference/unity/mathematics/half4/yyw.md)       | Swizzles the vector.                           |
| [yyww](/engine/6000.6/script-reference/unity/mathematics/half4/yyww.md)     | Swizzles the vector.                           |
| [yywx](/engine/6000.6/script-reference/unity/mathematics/half4/yywx.md)     | Swizzles the vector.                           |
| [yywy](/engine/6000.6/script-reference/unity/mathematics/half4/yywy.md)     | Swizzles the vector.                           |
| [yywz](/engine/6000.6/script-reference/unity/mathematics/half4/yywz.md)     | Swizzles the vector.                           |
| [yyx](/engine/6000.6/script-reference/unity/mathematics/half4/yyx.md)       | Swizzles the vector.                           |
| [yyxw](/engine/6000.6/script-reference/unity/mathematics/half4/yyxw.md)     | Swizzles the vector.                           |
| [yyxx](/engine/6000.6/script-reference/unity/mathematics/half4/yyxx.md)     | Swizzles the vector.                           |
| [yyxy](/engine/6000.6/script-reference/unity/mathematics/half4/yyxy.md)     | Swizzles the vector.                           |
| [yyxz](/engine/6000.6/script-reference/unity/mathematics/half4/yyxz.md)     | Swizzles the vector.                           |
| [yyy](/engine/6000.6/script-reference/unity/mathematics/half4/yyy.md)       | Swizzles the vector.                           |
| [yyyw](/engine/6000.6/script-reference/unity/mathematics/half4/yyyw.md)     | Swizzles the vector.                           |
| [yyyx](/engine/6000.6/script-reference/unity/mathematics/half4/yyyx.md)     | Swizzles the vector.                           |
| [yyyy](/engine/6000.6/script-reference/unity/mathematics/half4/yyyy.md)     | Swizzles the vector.                           |
| [yyyz](/engine/6000.6/script-reference/unity/mathematics/half4/yyyz.md)     | Swizzles the vector.                           |
| [yyz](/engine/6000.6/script-reference/unity/mathematics/half4/yyz.md)       | Swizzles the vector.                           |
| [yyzw](/engine/6000.6/script-reference/unity/mathematics/half4/yyzw.md)     | Swizzles the vector.                           |
| [yyzx](/engine/6000.6/script-reference/unity/mathematics/half4/yyzx.md)     | Swizzles the vector.                           |
| [yyzy](/engine/6000.6/script-reference/unity/mathematics/half4/yyzy.md)     | Swizzles the vector.                           |
| [yyzz](/engine/6000.6/script-reference/unity/mathematics/half4/yyzz.md)     | Swizzles the vector.                           |
| [yz](/engine/6000.6/script-reference/unity/mathematics/half4/yz.md)         | Swizzles the vector.                           |
| [yzw](/engine/6000.6/script-reference/unity/mathematics/half4/yzw.md)       | Swizzles the vector.                           |
| [yzww](/engine/6000.6/script-reference/unity/mathematics/half4/yzww.md)     | Swizzles the vector.                           |
| [yzwx](/engine/6000.6/script-reference/unity/mathematics/half4/yzwx.md)     | Swizzles the vector.                           |
| [yzwy](/engine/6000.6/script-reference/unity/mathematics/half4/yzwy.md)     | Swizzles the vector.                           |
| [yzwz](/engine/6000.6/script-reference/unity/mathematics/half4/yzwz.md)     | Swizzles the vector.                           |
| [yzx](/engine/6000.6/script-reference/unity/mathematics/half4/yzx.md)       | Swizzles the vector.                           |
| [yzxw](/engine/6000.6/script-reference/unity/mathematics/half4/yzxw.md)     | Swizzles the vector.                           |
| [yzxx](/engine/6000.6/script-reference/unity/mathematics/half4/yzxx.md)     | Swizzles the vector.                           |
| [yzxy](/engine/6000.6/script-reference/unity/mathematics/half4/yzxy.md)     | Swizzles the vector.                           |
| [yzxz](/engine/6000.6/script-reference/unity/mathematics/half4/yzxz.md)     | Swizzles the vector.                           |
| [yzy](/engine/6000.6/script-reference/unity/mathematics/half4/yzy.md)       | Swizzles the vector.                           |
| [yzyw](/engine/6000.6/script-reference/unity/mathematics/half4/yzyw.md)     | Swizzles the vector.                           |
| [yzyx](/engine/6000.6/script-reference/unity/mathematics/half4/yzyx.md)     | Swizzles the vector.                           |
| [yzyy](/engine/6000.6/script-reference/unity/mathematics/half4/yzyy.md)     | Swizzles the vector.                           |
| [yzyz](/engine/6000.6/script-reference/unity/mathematics/half4/yzyz.md)     | Swizzles the vector.                           |
| [yzz](/engine/6000.6/script-reference/unity/mathematics/half4/yzz.md)       | Swizzles the vector.                           |
| [yzzw](/engine/6000.6/script-reference/unity/mathematics/half4/yzzw.md)     | Swizzles the vector.                           |
| [yzzx](/engine/6000.6/script-reference/unity/mathematics/half4/yzzx.md)     | Swizzles the vector.                           |
| [yzzy](/engine/6000.6/script-reference/unity/mathematics/half4/yzzy.md)     | Swizzles the vector.                           |
| [yzzz](/engine/6000.6/script-reference/unity/mathematics/half4/yzzz.md)     | Swizzles the vector.                           |
| [zw](/engine/6000.6/script-reference/unity/mathematics/half4/zw.md)         | Swizzles the vector.                           |
| [zww](/engine/6000.6/script-reference/unity/mathematics/half4/zww.md)       | Swizzles the vector.                           |
| [zwww](/engine/6000.6/script-reference/unity/mathematics/half4/zwww.md)     | Swizzles the vector.                           |
| [zwwx](/engine/6000.6/script-reference/unity/mathematics/half4/zwwx.md)     | Swizzles the vector.                           |
| [zwwy](/engine/6000.6/script-reference/unity/mathematics/half4/zwwy.md)     | Swizzles the vector.                           |
| [zwwz](/engine/6000.6/script-reference/unity/mathematics/half4/zwwz.md)     | Swizzles the vector.                           |
| [zwx](/engine/6000.6/script-reference/unity/mathematics/half4/zwx.md)       | Swizzles the vector.                           |
| [zwxw](/engine/6000.6/script-reference/unity/mathematics/half4/zwxw.md)     | Swizzles the vector.                           |
| [zwxx](/engine/6000.6/script-reference/unity/mathematics/half4/zwxx.md)     | Swizzles the vector.                           |
| [zwxy](/engine/6000.6/script-reference/unity/mathematics/half4/zwxy.md)     | Swizzles the vector.                           |
| [zwxz](/engine/6000.6/script-reference/unity/mathematics/half4/zwxz.md)     | Swizzles the vector.                           |
| [zwy](/engine/6000.6/script-reference/unity/mathematics/half4/zwy.md)       | Swizzles the vector.                           |
| [zwyw](/engine/6000.6/script-reference/unity/mathematics/half4/zwyw.md)     | Swizzles the vector.                           |
| [zwyx](/engine/6000.6/script-reference/unity/mathematics/half4/zwyx.md)     | Swizzles the vector.                           |
| [zwyy](/engine/6000.6/script-reference/unity/mathematics/half4/zwyy.md)     | Swizzles the vector.                           |
| [zwyz](/engine/6000.6/script-reference/unity/mathematics/half4/zwyz.md)     | Swizzles the vector.                           |
| [zwz](/engine/6000.6/script-reference/unity/mathematics/half4/zwz.md)       | Swizzles the vector.                           |
| [zwzw](/engine/6000.6/script-reference/unity/mathematics/half4/zwzw.md)     | Swizzles the vector.                           |
| [zwzx](/engine/6000.6/script-reference/unity/mathematics/half4/zwzx.md)     | Swizzles the vector.                           |
| [zwzy](/engine/6000.6/script-reference/unity/mathematics/half4/zwzy.md)     | Swizzles the vector.                           |
| [zwzz](/engine/6000.6/script-reference/unity/mathematics/half4/zwzz.md)     | Swizzles the vector.                           |
| [zx](/engine/6000.6/script-reference/unity/mathematics/half4/zx.md)         | Swizzles the vector.                           |
| [zxw](/engine/6000.6/script-reference/unity/mathematics/half4/zxw.md)       | Swizzles the vector.                           |
| [zxww](/engine/6000.6/script-reference/unity/mathematics/half4/zxww.md)     | Swizzles the vector.                           |
| [zxwx](/engine/6000.6/script-reference/unity/mathematics/half4/zxwx.md)     | Swizzles the vector.                           |
| [zxwy](/engine/6000.6/script-reference/unity/mathematics/half4/zxwy.md)     | Swizzles the vector.                           |
| [zxwz](/engine/6000.6/script-reference/unity/mathematics/half4/zxwz.md)     | Swizzles the vector.                           |
| [zxx](/engine/6000.6/script-reference/unity/mathematics/half4/zxx.md)       | Swizzles the vector.                           |
| [zxxw](/engine/6000.6/script-reference/unity/mathematics/half4/zxxw.md)     | Swizzles the vector.                           |
| [zxxx](/engine/6000.6/script-reference/unity/mathematics/half4/zxxx.md)     | Swizzles the vector.                           |
| [zxxy](/engine/6000.6/script-reference/unity/mathematics/half4/zxxy.md)     | Swizzles the vector.                           |
| [zxxz](/engine/6000.6/script-reference/unity/mathematics/half4/zxxz.md)     | Swizzles the vector.                           |
| [zxy](/engine/6000.6/script-reference/unity/mathematics/half4/zxy.md)       | Swizzles the vector.                           |
| [zxyw](/engine/6000.6/script-reference/unity/mathematics/half4/zxyw.md)     | Swizzles the vector.                           |
| [zxyx](/engine/6000.6/script-reference/unity/mathematics/half4/zxyx.md)     | Swizzles the vector.                           |
| [zxyy](/engine/6000.6/script-reference/unity/mathematics/half4/zxyy.md)     | Swizzles the vector.                           |
| [zxyz](/engine/6000.6/script-reference/unity/mathematics/half4/zxyz.md)     | Swizzles the vector.                           |
| [zxz](/engine/6000.6/script-reference/unity/mathematics/half4/zxz.md)       | Swizzles the vector.                           |
| [zxzw](/engine/6000.6/script-reference/unity/mathematics/half4/zxzw.md)     | Swizzles the vector.                           |
| [zxzx](/engine/6000.6/script-reference/unity/mathematics/half4/zxzx.md)     | Swizzles the vector.                           |
| [zxzy](/engine/6000.6/script-reference/unity/mathematics/half4/zxzy.md)     | Swizzles the vector.                           |
| [zxzz](/engine/6000.6/script-reference/unity/mathematics/half4/zxzz.md)     | Swizzles the vector.                           |
| [zy](/engine/6000.6/script-reference/unity/mathematics/half4/zy.md)         | Swizzles the vector.                           |
| [zyw](/engine/6000.6/script-reference/unity/mathematics/half4/zyw.md)       | Swizzles the vector.                           |
| [zyww](/engine/6000.6/script-reference/unity/mathematics/half4/zyww.md)     | Swizzles the vector.                           |
| [zywx](/engine/6000.6/script-reference/unity/mathematics/half4/zywx.md)     | Swizzles the vector.                           |
| [zywy](/engine/6000.6/script-reference/unity/mathematics/half4/zywy.md)     | Swizzles the vector.                           |
| [zywz](/engine/6000.6/script-reference/unity/mathematics/half4/zywz.md)     | Swizzles the vector.                           |
| [zyx](/engine/6000.6/script-reference/unity/mathematics/half4/zyx.md)       | Swizzles the vector.                           |
| [zyxw](/engine/6000.6/script-reference/unity/mathematics/half4/zyxw.md)     | Swizzles the vector.                           |
| [zyxx](/engine/6000.6/script-reference/unity/mathematics/half4/zyxx.md)     | Swizzles the vector.                           |
| [zyxy](/engine/6000.6/script-reference/unity/mathematics/half4/zyxy.md)     | Swizzles the vector.                           |
| [zyxz](/engine/6000.6/script-reference/unity/mathematics/half4/zyxz.md)     | Swizzles the vector.                           |
| [zyy](/engine/6000.6/script-reference/unity/mathematics/half4/zyy.md)       | Swizzles the vector.                           |
| [zyyw](/engine/6000.6/script-reference/unity/mathematics/half4/zyyw.md)     | Swizzles the vector.                           |
| [zyyx](/engine/6000.6/script-reference/unity/mathematics/half4/zyyx.md)     | Swizzles the vector.                           |
| [zyyy](/engine/6000.6/script-reference/unity/mathematics/half4/zyyy.md)     | Swizzles the vector.                           |
| [zyyz](/engine/6000.6/script-reference/unity/mathematics/half4/zyyz.md)     | Swizzles the vector.                           |
| [zyz](/engine/6000.6/script-reference/unity/mathematics/half4/zyz.md)       | Swizzles the vector.                           |
| [zyzw](/engine/6000.6/script-reference/unity/mathematics/half4/zyzw.md)     | Swizzles the vector.                           |
| [zyzx](/engine/6000.6/script-reference/unity/mathematics/half4/zyzx.md)     | Swizzles the vector.                           |
| [zyzy](/engine/6000.6/script-reference/unity/mathematics/half4/zyzy.md)     | Swizzles the vector.                           |
| [zyzz](/engine/6000.6/script-reference/unity/mathematics/half4/zyzz.md)     | Swizzles the vector.                           |
| [zz](/engine/6000.6/script-reference/unity/mathematics/half4/zz.md)         | Swizzles the vector.                           |
| [zzw](/engine/6000.6/script-reference/unity/mathematics/half4/zzw.md)       | Swizzles the vector.                           |
| [zzww](/engine/6000.6/script-reference/unity/mathematics/half4/zzww.md)     | Swizzles the vector.                           |
| [zzwx](/engine/6000.6/script-reference/unity/mathematics/half4/zzwx.md)     | Swizzles the vector.                           |
| [zzwy](/engine/6000.6/script-reference/unity/mathematics/half4/zzwy.md)     | Swizzles the vector.                           |
| [zzwz](/engine/6000.6/script-reference/unity/mathematics/half4/zzwz.md)     | Swizzles the vector.                           |
| [zzx](/engine/6000.6/script-reference/unity/mathematics/half4/zzx.md)       | Swizzles the vector.                           |
| [zzxw](/engine/6000.6/script-reference/unity/mathematics/half4/zzxw.md)     | Swizzles the vector.                           |
| [zzxx](/engine/6000.6/script-reference/unity/mathematics/half4/zzxx.md)     | Swizzles the vector.                           |
| [zzxy](/engine/6000.6/script-reference/unity/mathematics/half4/zzxy.md)     | Swizzles the vector.                           |
| [zzxz](/engine/6000.6/script-reference/unity/mathematics/half4/zzxz.md)     | Swizzles the vector.                           |
| [zzy](/engine/6000.6/script-reference/unity/mathematics/half4/zzy.md)       | Swizzles the vector.                           |
| [zzyw](/engine/6000.6/script-reference/unity/mathematics/half4/zzyw.md)     | Swizzles the vector.                           |
| [zzyx](/engine/6000.6/script-reference/unity/mathematics/half4/zzyx.md)     | Swizzles the vector.                           |
| [zzyy](/engine/6000.6/script-reference/unity/mathematics/half4/zzyy.md)     | Swizzles the vector.                           |
| [zzyz](/engine/6000.6/script-reference/unity/mathematics/half4/zzyz.md)     | Swizzles the vector.                           |
| [zzz](/engine/6000.6/script-reference/unity/mathematics/half4/zzz.md)       | Swizzles the vector.                           |
| [zzzw](/engine/6000.6/script-reference/unity/mathematics/half4/zzzw.md)     | Swizzles the vector.                           |
| [zzzx](/engine/6000.6/script-reference/unity/mathematics/half4/zzzx.md)     | Swizzles the vector.                           |
| [zzzy](/engine/6000.6/script-reference/unity/mathematics/half4/zzzy.md)     | Swizzles the vector.                           |
| [zzzz](/engine/6000.6/script-reference/unity/mathematics/half4/zzzz.md)     | Swizzles the vector.                           |

## Methods

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

## Operators

| Operator                                                                                | Description                                                                                                               |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [operator ==](/engine/6000.6/script-reference/unity/mathematics/half4/op-equality.md)   | Returns the result of a componentwise equality operation on a half value and a half4 vector.                              |
| [half4](/engine/6000.6/script-reference/unity/mathematics/half4/op-explicit.md)         | Explicitly converts a single double value to a half4 vector by converting it to half and assigning it to every component. |
| [operator !=](/engine/6000.6/script-reference/unity/mathematics/half4/op-inequality.md) | Returns the result of a componentwise not equal operation on a half value and a half4 vector.                             |
