言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

TerrainData.GetSupportedLayers

public function GetSupportedLayers(xBase: int, yBase: int, totalWidth: int, totalHeight: int): int[];

Description

エリア内のすべてのサポートされている、レイヤーのインデックス配列を取得します

The Terrain uses a detail layer density map. Each pixel in the map the amount of details objects that will be procedurally placed in the pixel area. The layer determines the detail prototype that will be instantiated at the location.