ドキュメント

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