# Sandbox.SandboxBaseExtensions.AddCube

```csharp
static void AddCube(VertexBuffer self, Vector3 center, Vector3 size, Rotation rot, Color32 color = null)
```

### Parameters

- `self` (`VertexBuffer`)
- `center` (`Vector3`)
- `size` (`Vector3`)
- `rot` (`Rotation`)
- `color` (`Color32`), default `null`

Declared in [Sandbox.SandboxBaseExtensions](/api/Sandbox.SandboxBaseExtensions).
Assembly: `Sandbox.Engine`.
