# operator -(Vector2Int, Vector2Int)

> Subtracts one vector from another.

## Definition

* **Type:** Operator
* **Namespace:** [UnityEngine](/engine/6000.3/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static Vector2Int operator -(Vector2Int a, Vector2Int b)
```

### Parameters

**** (\[Vector2Int]\(/engine/6000.3/script-reference/unityengine/vector2int)): The vector to subtract `b` from.**** (\[Vector2Int]\(/engine/6000.3/script-reference/unityengine/vector2int)): The vector to subtract from `a`.

### Returns

| Type                                                                    | Description |
| ----------------------------------------------------------------------- | ----------- |
| [Vector2Int](/engine/6000.3/script-reference/unityengine/vector2int.md) |             |

### Remarks

Subtracts each component of `b` from `a`.
