文档

Unity Engine

Unity Engine

GetHeight(int, int)

Calculates the height in world space units of a point on the heightmap. x and y are pixel coordinates in the heightmap, and the returned value does not take into account the heightmap's position.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Parameters

Returns

Type

Description

float