# Sandbox.Texture.GetPixel3D

```csharp
Color32 GetPixel3D(float x, float y, float z, int mip = 0)
```

Reads a single pixel color from a volume or array texture.

### Parameters

- `x` (`float`)
- `y` (`float`)
- `z` (`float`)
- `mip` (`int`), default `0`

### Returns

`Color32`

Declared in [Sandbox.Texture](/api/Sandbox.Texture).
Assembly: `Sandbox.Engine`.
