# SetMatrix4x4

> Sets the value of a named Matrix4x4 property.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.VFX](/engine/6000.5/script-reference/unityengine/vfx.md)
* **Assembly:** UnityEngine.VFXModule

## SetMatrix4x4(int, Matrix4x4)

Sets the value of a named Matrix4x4 property.

```csharp
public void SetMatrix4x4(int nameID, Matrix4x4 v)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The ID of the property. This is the same ID that [Shader.PropertyToID](/engine/6000.5/script-reference/unityengine/shader/propertytoid.md) returns.**** (\[Matrix4x4]\(/engine/6000.5/script-reference/unityengine/matrix4x4)): The new Matrix4x4 value.

### Remarks

Automatically changes overridden state for this property to true.

## SetMatrix4x4(string, Matrix4x4)

Sets the value of a named Matrix4x4 property.

```csharp
public void SetMatrix4x4(string name, Matrix4x4 v)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property.**** (\[Matrix4x4]\(/engine/6000.5/script-reference/unityengine/matrix4x4)): The new Matrix4x4 value.

### Remarks

Automatically changes overridden state for this property to true.
