기술 자료

Unity Engine


User Manual

Script Reference

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분최근 업데이트: 25일 전

Definition

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

Parameters

Returns

Type

Description

float