Version: 2022.3

TerrainData.SetTreeInstances

切换到手册
public void SetTreeInstances (TreeInstance[] instances, bool snapToHeightmap);

参数

instances TreeInstance 对象的数组。
snapToHeightmap 指定是否将树贴靠到地形高度贴图。

描述

设置树实例数组,可以选择将树贴靠到地形高度贴图的表面上。

另请参阅:treeInstances