Experimental: this API is experimental and might be changed or removed in the future.

TerrainPaintUtility.FindTerrainLayerIndex

Cambiar al Manual
public static int FindTerrainLayerIndex (Terrain terrain, TerrainLayer inputLayer);

Parámetros

terrainTerrain tile.
inputLayerTerrain layer to search for.

Valor de retorno

int Returns the index of the terrain layer if it exists or -1 if it doesn't exist.

Descripción

Finds the index of a TerrainLayer in a Terrain tile.