文档

Unity Engine

Unity Engine

activeTerrains

The active terrains in the Scene.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Remarks

This returns all the active terrains in the scene. A terrain is active when the component that represents it is enabled and the GameObject it is on is active.