activeTerrain
The active Terrain. This is a convenient function to get to the main Terrain in the Scene.
읽는 시간 1분최근 업데이트: 한 달 전
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 Terrain.activeTerrains instead. A terrain is active when the component that represents it is enabled and the GameObject it is on is active.