# Sandbox.DebugOverlaySystem.ScreenText

## Overload 1

```csharp
void ScreenText(Vector2 pixelPosition, string text, float size = 14, TextFlag flags = 132, Color color = null, float duration = 0)
```

Draw text on the screen

### Parameters

- `pixelPosition` (`Vector2`)
- `text` (`string`)
- `size` (`float`), default `14`
- `flags` (`TextFlag`), default `132`
- `color` (`Color`), default `null`
- `duration` (`float`), default `0`

## Overload 2

```csharp
void ScreenText(Vector2 pixelPosition, Scope textBlock, TextFlag flags = 132, float duration = 0)
```

Draw text on the screen

### Parameters

- `pixelPosition` (`Vector2`)
- `textBlock` (`Scope`)
- `flags` (`TextFlag`), default `132`
- `duration` (`float`), default `0`

Declared in [Sandbox.DebugOverlaySystem](/api/Sandbox.DebugOverlaySystem).
Assembly: `Sandbox.Engine`.
