Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


activeTerrain

The active Terrain. This is a convenient function to get to the main Terrain in the Scene.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public static Terrain activeTerrain { get; }

Remarks

If you have multiple active Terrains, this returns only one of them. If you need all the terrains in the scene, use _activeTerrains instead. A terrain is active when the component that represents it is enabled and the GameObject it is on is active.