Export Prototype Distribution Map


Texture2D[] ExportPrototypeDistributionMap(TerrainTexturesExporterEnum.Prototype prototype, int resolution, bool mergeTextures)
Exports distribution maps of Tree, Grass or Detail Meshes.
mergeTextures - If set to true, then exported map contains placement data of all details in one texture. If set to false, then each layer/index of prototype is exported in its own separate file.
Texture2D ExportPrototypeDistributionMap(TerrainTexturesExporterEnum.Prototype prototype, int resolution, int prototypeIndex)
Exports distribution maps of Tree, Grass or Detail Meshes, but using prototypeIndex value can be set exact index of prototype being exported.
Texture2D ExportPrototypeDistributionMap(TerrainTexturesExporterEnum.Prototype prototype, int resolution, UnityEngine.Object prefab)
Exports distribution maps of Tree, Grass or Detail Meshes, but using prefab value can be chosen exact object whose distribution map is being exported. This is GameObject for Tree and Detail Meshes and Texture2D for Grass.
Last updated