# Sandbox.DebugOverlaySystem.Texture

## Overload 1

```csharp
void Texture(Vector2 pixelPosition, Texture texture, Vector2 size, float duration = 0)
```

### Parameters

- `pixelPosition` (`Vector2`)
- `texture` (`Texture`)
- `size` (`Vector2`)
- `duration` (`float`), default `0`

## Overload 2

```csharp
void Texture(Texture texture, Vector2 position, System.Nullable<Color> color = null, float duration = 0)
```

### Parameters

- `texture` (`Texture`)
- `position` (`Vector2`)
- `color` (`System.Nullable<Color>`), default `null`
- `duration` (`float`), default `0`

## Overload 3

```csharp
void Texture(Texture texture, Rect screenRect, System.Nullable<Color> color = null, float duration = 0)
```

### Parameters

- `texture` (`Texture`)
- `screenRect` (`Rect`)
- `color` (`System.Nullable<Color>`), default `null`
- `duration` (`float`), default `0`

Declared in [Sandbox.DebugOverlaySystem](/api/Sandbox.DebugOverlaySystem).
Assembly: `Sandbox.Engine`.
