Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

TerrainData.bounds

public Bounds bounds;

Description

The local bounding box of the TerrainData object.

In order to retrive the world bounding box of a terrain, move it with Transform.position.

Did you find this page useful? Please give it a rating: