# Editor.MapDoc.MapMesh.SetMaterial

```csharp
void SetMaterial(Material material)
```

Assigns the specified material to the entire mesh

### Parameters

- `material` (`Material`)

Declared in [Editor.MapDoc.MapMesh](/api/Editor.MapDoc.MapMesh).
Assembly: `Sandbox.Tools`.
