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