# pixelRect

> (Read Only) The pixel rectangle that this PaintContext represents.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.TerrainTools](/engine/6000.7/script-reference/unityengine/terraintools.md)
* **Assembly:** UnityEngine.TerrainModule

```csharp
public RectInt pixelRect { get; }
```

### Remarks

The pixel rectangle coordinates refer to pixels in the targetTexture on the [\_originTerrain](/engine/6000.7/script-reference/unityengine/terraintools/paintcontext/originterrain.md).

Additional Resources: [\_targetTextureWidth](/engine/6000.7/script-reference/unityengine/terraintools/paintcontext/targettexturewidth.md), [\_targetTextureHeight](/engine/6000.7/script-reference/unityengine/terraintools/paintcontext/targettextureheight.md)
