Version: 2022.3
言語: 日本語
public float[,] GetHeights (int xBase, int yBase, int width, int height);

パラメーター

xBase First index of heightmap samples to retrieve along the Terrain's x axis.
yBase First index of heightmap samples to retrieve along the Terrain's z axis.
width Number of samples to retrieve along the Terrain's x axis.
height Number of samples to retrieve along the Terrain's z axis.

説明

Gets an array of heightmap samples.

ハイトマップサンプルの2次元配列を返します。サンプルは 0 から 1 までのフロート値として表されます。配列は [高さ, 幅] でインデックスは [x, y] です。