ElmarJ / GeoJsonCityBuilder

Unity Package to recreate a 3D-city from a specially crafted geojson file.
MIT License
22 stars 2 forks source link

Automatic conversion to standard prefab / asset (i.e. unprobuilderize) #15

Open ElmarJ opened 2 years ago

ElmarJ commented 2 years ago

I don't need to keep probuilder-support after generating the building - merely keeping the mesh would be fine. This would also considerably improve the git-story for Waterlooplein3D (also because it solves an issue with prefabs, currently storing all meshes in the scene instead of prefabs).

See export function in Probuilder here: https://docs.unity3d.com/Packages/com.unity.probuilder@5.0/manual/workflow-exporting.html

ElmarJ commented 2 years ago

There is no public API for doing this, but the code used by Probuilder can be found here: https://github.com/Unity-Technologies/com.unity.probuilder/blob/11abab48877fd9dad883330b4b73bfcd0b7d6ab5/Editor/MenuActions/Export/ExportAsset.cs