Version: 2019.4
Experimental: this API is experimental and might be changed or removed in the future.

マニュアルに切り替える

パラメーター

terrainTerrain that defines terrain space for this PaintContext.
pixelRectPixel rectangle to edit in the target terrain texture.
targetTextureWidthWidth of the target terrain texture (per Terrain).
targetTextureHeightHeight of the target terrain texture (per Terrain).

説明

Creates a new PaintContext, to edit a target texture on a Terrain, in a region defined by pixelRect.

This constructor finds all Terrain tiles that touch the pixelRect, searching across adjacent connected Terrain tiles. It also calculates the relevant regions on each Terrain, as well as the transforms between them.

See Also: PaintContext