Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

TerrainData.GetHeights

GetHeights(xBase: int, yBase: int, width: int, height: int): float[,];
float[,] GetHeights(int xBase, int yBase, int width, int height);
def GetHeights(xBase as int, yBase as int, width as int, height as int) as float[,]

Description

Get an array of heightmap samples..