- Home /
Gather all the Meshes into 1
Hello, I've got complexe 3D models with a lot of Meshes and Sub-Meshes. I would like to gather all of them into 1 unique "big mesh", in order to use it as a MeshFilter and a MeshCollider. By the way, I would also be able to get the "center" of my model, which I struggle to do right now with all thoses Meshes.
I already checked CombineMeshes method, but I don't think I used it propely (didn't work). Anyway, I don't want to calculate this "big mesh" everytime the game lauchs. I want to store my 3D model as a prefab, with the "big mesh" as it's only mesh. I would like my prefab to be ready-to-use, so the "big mesh" has to be set as the MeshFilter and as the MeshCollider of my prefab.
I unfortunatly have no clue how to do that... any tips please ?
Answer by melwei · Jun 07, 2016 at 04:08 PM
I think the CombineMeshes method can create this "big mesh", I didn't use it yet. When you created this "big mesh" in the scene, you will be able to just drag it into your project folder in the editor.
Another possibility for this Mesh is importing it to another 3D engine like blender. You can create the "big mesh" there and export it into your project.
Your answer
Follow this Question
Related Questions
CombineInstance[] submesh index 1 Answer
Combine meshes? 1 Answer
CombineMeshes result invisible. 0 Answers
Updating Dynamic Mesh's Collider is Too Slow 1 Answer
Copying the mesh, collider, and material of a procedurally generated GameObject 0 Answers