TerrainRegion
Stores a copied block of terrain cells.
Behavior
Terrain:CopyRegion(region) returns a TerrainRegion. The copied cell data can be transformed and pasted with Terrain:PasteRegion. Transform methods return another TerrainRegion.
Summary
Members6
Properties4
The dimensions of the copied region in cells.
The dimensions of the copied region in studs.
Whether the copied region contains no occupied cells.
The string "TerrainRegion".
Methods2
Properties
SizeInCells
TerrainRegion.SizeInCells: Vector3The dimensions of the copied region in cells.
Size
TerrainRegion.Size: Vector3The dimensions of the copied region in studs.
IsEmpty
TerrainRegion.IsEmpty: booleanWhether the copied region contains no occupied cells.
ClassName
TerrainRegion.ClassName: stringThe string "TerrainRegion".
Methods
Rotated
TerrainRegion:Rotated(turns: number): TerrainRegionReturns a copy rotated by the supplied number of quarter turns.
Mirrored
TerrainRegion:Mirrored(axis: string): TerrainRegionReturns a copy mirrored across the selected axis. Accepts "X", "Y", or "Z", in either case. Other values cause an error.