# Set(float, float, float, float)

> Set x, y, z and w components of an existing Vector4.

## Definition

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

```csharp
public void Set(float newX, float newY, float newZ, float newW)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The new x component.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The new y component.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The new z component.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The new w component.
