# Sandbox.Rendering.HudPainter.SetMatrix

```csharp
void SetMatrix(Matrix matrix)
```

Sets the transformation matrix for subsequent drawing operations.

### Parameters

- `matrix` (`Matrix`): The transformation matrix to apply.

Declared in [Sandbox.Rendering.HudPainter](/api/Sandbox.Rendering.HudPainter).
Assembly: `Sandbox.Engine`.
