FindTerrainLayerIndex(Terrain, TerrainLayer)
Finds the index of a TerrainLayer in a Terrain tile.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.TerrainTools
- Assembly: UnityEngine.TerrainModule
public static int FindTerrainLayerIndex(Terrain terrain, TerrainLayer inputLayer)
Parameters
Returns
Type | Description |
|---|---|
| int | Returns the index of the terrain layer if it exists or -1 if it doesn't exist. |