- Home /
The question is answered, right answer was accepted
Combining meshes from imported models.
Hi everyone,
I'm working on a terrain generation project which instantiates different 3D models based on what the terrain should look like. In order to reduce batches I would like to combine those models, thus combine their meshes into a bigger mesh.
I used Unity's documentation on combining meshes https://docs.unity3d.com/ScriptReference/Mesh.CombineMeshes.html
However here is my problem, combining meshes works fine when using the default cubes, quads and spheres etc... from Unity. But the moment I use the model I imported from Blender, it doesn't combine them even though my models are children of the object who has the combine mesh script on it.
I double checked and everything seems alright, my models have a meshfilter and a meshrender just like the parent objet. Is there something I could have forgoten when exporting the models to .FBX ? or maybe some option I should tick in Unity?
Thank you for taking the time to help me, I tried to look for this problem on forums but couldn't find a solution..
Cheers!
Answer by michel83570 · Dec 16, 2019 at 05:03 PM
Found a solution:
Click on your model in your assets in Unity.
Look in the inspector under the Model tab (next to Rig, Animation and Materials)
Make sure the "Read/Write Enabled" is checked
That fixed it for me.
Cheers.
Follow this Question
Related Questions
References to model disconnect from prefabs after updating models 1 Answer
Sketchup Importing 5 Answers
Cheetah 3d Animations not Working with Mesh Renderer! 0 Answers
AssetBundle to prefab => meshes/textures missing 1 Answer
Is there a way to use SkinnedMeshRenderer.BakeMesh() in multiple threads? (Mesh Instancing) 0 Answers