# Sandbox.DebugOverlaySystem.GameObject

```csharp
void GameObject(GameObject go, Color color = null, float duration = 0, Transform transform = null, bool overlay = False, bool castShadows = True, Material materialOveride = null)
```

Draw a GameObject in the world

### Parameters

- `go` (`GameObject`)
- `color` (`Color`), default `null`
- `duration` (`float`), default `0`
- `transform` (`Transform`), default `null`
- `overlay` (`bool`), default `False`
- `castShadows` (`bool`), default `True`
- `materialOveride` (`Material`), default `null`

Declared in [Sandbox.DebugOverlaySystem](/api/Sandbox.DebugOverlaySystem).
Assembly: `Sandbox.Engine`.
