# Editor.MapEditor.Hammer.SetCurrentMaterial

```csharp
static void SetCurrentMaterial(Asset asset)
```

Sets the currently used material to the specified asset.

## Remarks

I'd happily merge together this into a get setter, but it's a mix of a Material and an Asset

### Parameters

- `asset` (`Asset`)

Declared in [Editor.MapEditor.Hammer](/api/Editor.MapEditor.Hammer).
Assembly: `Sandbox.Tools`.
