# GetMatrix4x4

> Gets the value of a named Matrix4x4 property.

## Definition

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

## GetMatrix4x4(int)

Gets the value of a named Matrix4x4 property.

```csharp
public Matrix4x4 GetMatrix4x4(int nameID)
```

### 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.0/script-reference/unityengine/shader/propertytoid.md) returns.

### Returns

| Type                                                                  | Description                                                                                                                                                                                       |
| --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Matrix4x4](/engine/6000.0/script-reference/unityengine/matrix4x4.md) | The value for the Matrix4x4 you specify. Returns /Matrix4x4.identity/ if [VisualEffect.HasMatrix4x4](/engine/6000.0/script-reference/unityengine/vfx/visualeffect/hasmatrix4x4.md) returns false. |

## GetMatrix4x4(string)

Gets the value of a named Matrix4x4 property.

```csharp
public Matrix4x4 GetMatrix4x4(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property.

### Returns

| Type                                                                  | Description                                                                                                                                                                                       |
| --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Matrix4x4](/engine/6000.0/script-reference/unityengine/matrix4x4.md) | The value for the Matrix4x4 you specify. Returns /Matrix4x4.identity/ if [VisualEffect.HasMatrix4x4](/engine/6000.0/script-reference/unityengine/vfx/visualeffect/hasmatrix4x4.md) returns false. |
