# Sandbox.RenderAttributes.GetMatrix

```csharp
Matrix GetMatrix(in StringToken name, in Matrix defaultValue = null)
```

Get a matrix value - else defaultValue if missing

### Parameters

- `in name` (`StringToken`)
- `in defaultValue` (`Matrix`), default `null`

### Returns

`Matrix`

Declared in [Sandbox.RenderAttributes](/api/Sandbox.RenderAttributes).
Assembly: `Sandbox.Engine`.
