TerrainData.SetTreeInstances

Declaration

public void SetTreeInstances(TreeInstance[] instances, bool snapToHeightmap);

Parameters

instances The array of TreeInstance objects.
snapToHeightmap Specifies whether to snap Trees to the Terrain heightmap.

Description

Sets the Tree Instance array, and optionally snaps Trees onto the surface of the Terrain heightmap.

Additional resources: treeInstances.


Did you find this page useful? Please give it a rating: