Open ElmarJ opened 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
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