This version of Unity is unsupported.

TerrainData.GetInterpolatedHeight

public float GetInterpolatedHeight(float x, float y);

Parameters

xX coordinate of the point in the range of [0, 1].
yY coordinate of the point in the range of [0, 1].

Description

Gets an interpolated height at a point x,y. The x and y coordinates are clamped to [0, 1].