FindTerrainLayerIndex(Terrain, TerrainLayer)
Finds the index of a TerrainLayer in a Terrain tile.
Read time 1 minuteLast updated 10 days ago
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. |