Intersect(TerrainRegion, TerrainRegion)
Creates the region where two regions overlap.
Read time 1 minuteLast updated 22 days ago
Definition
- Type: Method
- Namespace: UnityEditor.TerrainTools
- Assembly: UnityEditor
public static TerrainRegion Intersect(TerrainRegion first, TerrainRegion second)
Parameters
Returns
Type | Description |
|---|---|
| TerrainRegion | The 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.