# operator ++(int2)

> Returns the result of a componentwise increment operation on an int2 vector.

## Definition

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

```csharp
public static int2 operator ++(int2 val)
```

### Parameters

**** (\[int2]\(/engine/6000.5/script-reference/unity/mathematics/int2)): Value to use when computing the componentwise increment.

### Returns

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