no luck so far…
I believe you can only call Mesh functions on the main thread. You would need to pass the vertex data for each mesh to a thread, combine them, and then return the combined vertex data to the main thread. There is a MeshMerger script on the unify wiki(http://wiki.unity3d.com/index.php?title=MeshMerger) that lets you combine meshes which could be used as a reference if you don’t know how to combine mesh data.
The whole Unity API is not thread safe. In order to do mesh processing in other threads than the main thread, you would need to use your own data structures or a thread safe library. Once the processing is done, you could use the computed data from the main thread to build meshes using the Unity Mesh class.
1 Like