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.SetHeights

SetHeights(xBase: int, yBase: int, heights: float[,]): void;
void SetHeights(int xBase, int yBase, float[,] heights);
def SetHeights(xBase as int, yBase as int, heights as float[,]) as void

Description

Set an array of heightmap samples.