Export Prototypes
TerrainToMeshPrototype[] ExportPrototypes(TerrainToMeshEnum.Prototype prototype)
Exports array of TerrainToMeshPrototype objects (that can be tree, grass or detail mesh) from TerrainData object, but each objects position Y value is 0.
objectType - Exported object type: Tree, Grass or DetailMesh.
TerrainToMeshPrototype[] ExportPrototypes(TerrainToMeshEnum.Prototype prototype, int vertexCountHorizontal, int vertexCountVertical, int splitCountHorizontal = 1, int splitCountVertical = 1)
Exports array of TerrainToMeshPrototype objects (that can be tree, grass or detail mesh) from TerrainData object and each objects position (including Y value) is adjusted according to the mesh grid resolution defined by the vertexCountHorizontal and vertexCountVertical properties.
TerrainToMeshPrototype[] ExportPrototypes(TerrainToMeshEnum.Prototype prototype, int vertexCountHorizontal, int vertexCountVertical, int splitCountHorizontal, int splitCountVertical, int splitColumnIndex, int splitRowIndex)
Exports array of TerrainToMeshPrototype objects of a multi-chunk 2D grid mesh with index splitColumnIndex and splitRowIndex.
Last updated