# Vector2Int.WithX

```csharp
Vector2Int WithX(int x)
```

Returns this integer vector with given X component.

### Parameters

- `x` (`int`)

### Returns

`Vector2Int`

Declared in [Vector2Int](/api/Vector2Int).
Assembly: `Sandbox.System`.
