This version of Unity is unsupported.

TerrainData.GetSteepness

Declaration

public float GetSteepness(float x, float y);

Description

Gets the gradient of the terrain at point (x,y).

The x and y values are normalized coordinates in the range 0..1.