Version: 2022.3
言語: 日本語
public void SetHeightsDelayLOD (int xBase, int yBase, float[,] heights);

パラメーター

xBase ハイトマップのサンプルを設定する最初の x インデックス
yBase ハイトマップのサンプルを設定する最初の y インデックス
heights 設定するハイトマップサンプルの配列 (値は 0 から 1 の範囲、配列のインデックスとして [x,y])

説明

Sets an array of heightmap samples.

ハイトマップサンプルの2次元配列を使用してハイトマップデータを設定します。サンプルは 0 から 1 までのフロート値として表されます。影響を受ける領域は配列の次元によって定義され、xBase と yBase で始まります。高さ配列は [x,y] としてインデックスされます。

Unlike TerrainData.SetHeights, this method does not update the LOD information for the terrain, or any trees/vegetation objects; this means the terrain may be temporarily rendered at an inappropriately high level of detail, but makes the method fast enough to be used in interactive editing scenarios. Once modifications to the terrain have been completed - for example, when the user releases the mouse button - call TerrainData.SyncHeightmap to update all the LOD and vegetation information.