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.

Terrain.CreateTerrainGameObject

Switch to Manual
static function CreateTerrainGameObject(assignTerrain: TerrainData): GameObject;
static GameObject CreateTerrainGameObject(TerrainData assignTerrain);
static def CreateTerrainGameObject(assignTerrain as TerrainData) as GameObject

Description

Creates a Terrain including collider from TerrainData.