# SetMesh

> Sets the value of a named Mesh property.

## Definition

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

## SetMesh(int, Mesh)

Sets the value of a named Mesh property.

```csharp
public void SetMesh(int nameID, Mesh m)
```

### 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.**** (\[Mesh]\(/engine/6000.5/script-reference/unityengine/mesh)): The new Mesh value.

### Remarks

Automatically changes overridden state for this property to true.

## SetMesh(string, Mesh)

Sets the value of a named Mesh property.

```csharp
public void SetMesh(string name, Mesh m)
```

### Parameters

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

### Remarks

Automatically changes overridden state for this property to true.
