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