Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

Terrain.SetNeighbors

Switch to Manual
public function SetNeighbors(left: Terrain, top: Terrain, right: Terrain, bottom: Terrain): void;

Parameters

Description

Lets you setup the connection between neighboring Terrains.

This ensures LOD matches up on neighboring terrains. Note that it is not enough to call this function on one Terrain, you need to set the neighbors of each terrain.