# Sandbox.ModelRenderer.SetMaterialOverride

```csharp
void SetMaterialOverride(Material material, string target)
```

Set a material override for a material with a specific attribute set. For example, if you have a model with lots of different materials, but one of them has an attribute "skin" set to "1", then 
calling this with a material and "skin" will override only that material.

### Parameters

- `material` (`Material`)
- `target` (`string`)

Declared in [Sandbox.ModelRenderer](/api/Sandbox.ModelRenderer).
Assembly: `Sandbox.Engine`.
