Documentation

Unity Engine

Download Unity

Unity Engine

Intersect(TerrainRegion, TerrainRegion)

Creates the region where two regions overlap.
Read time 1 minuteLast updated 22 days ago

Definition

public static TerrainRegion Intersect(TerrainRegion first, TerrainRegion second)

Parameters

The first region.

The second region.

Returns

Type

Description

TerrainRegionThe intersection. When one of the regions is TerrainRegion.whole, returns the other one.

Remarks

The weight of the intersection at a position is the smaller of the weights of the two regions there. An edit's blend band around an intersection is measured from the farther of the two regions, so it can reach past the distance it was given near the corners of the overlap.