# Sandbox.Material.Create

```csharp
static Material Create(string materialName, string shader, bool anonymous = True)
```

Create a new empty material at runtime.

### Parameters

- `materialName` (`string`): Name of the new material.
- `shader` (`string`): Shader that the new material will use.
- `anonymous` (`bool`), default `True`: If false, material can be found by name.

### Returns

`Material`: The new material.

Declared in [Sandbox.Material](/api/Sandbox.Material).
Assembly: `Sandbox.Engine`.
