Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

PaintContext.pixelRect

public RectInt pixelRect;

Description

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

The pixel rectangle coordinates refer to pixels in the targetTexture on the PaintContext.originTerrain.

Additional resources: PaintContext.targetTextureWidth, PaintContext.targetTextureHeight