# SetRow(int, Vector4)

> Sets a row of the matrix.

## Definition

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

```csharp
public void SetRow(int index, Vector4 row)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[Vector4]\(/engine/6000.0/script-reference/unityengine/vector4)):&#x20;

### Remarks

The i-th row is set from [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md). i must be from 0 to 3 inclusive.

Additional Resources: [Matrix4x4.GetRow](/engine/6000.0/script-reference/unityengine/matrix4x4/getrow.md).
