# Vector4.WithY

```csharp
Vector4 WithY(float y)
```

Returns this vector with given Y component.

### Parameters

- `y` (`float`): The override for Y component.

### Returns

`Vector4`: The new vector.

Declared in [Vector4](/api/Vector4).
Assembly: `Sandbox.System`.
