Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetInterpolatedHeight(float, float)

Gets an interpolated height at a point x,y. The x and y coordinates are clamped to [0, 1].
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public float GetInterpolatedHeight(float x, float y)

Parameters

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

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

Returns

Type

Description

float