Documentation

Unity Engine

Download Unity

Unity Engine

Rectangle(Rect)

Creates a rectangular region.
Read time 1 minuteLast updated 22 days ago

Definition

public static TerrainRegion Rectangle(Rect rect)

Parameters

rect

The rectangle in meters. Its width and height must be greater than zero.

Returns

Type

Description

TerrainRegionThe new region.