I’m working on mesh Boolean operations (CSG), something like mesh intersection and union.
But unity doesn’t support it.
I found this method on another thread , bam93 said he can import mesh in blender, write a blender script for doing the union and export in a mesh format read by unity.
Can someone teach me to use script to export mesh from unity to blender and use script to import mesh (after Boolean operations) from blender to unity?
Unity stores meshes in it’s own native format that no one else can read. You need to write it in a format that blender understands, best advice is to use fbx.
As long as you’re dealing with non-skinned meshes I believe this free exporter from Unity ought to suit your needs:
does this exporter support the second uv channel ?
i tested two or three exporter up to now and as far as i can remember, not a single one of them exported the second uv channel. which really sucks for my project
I don’t know about that, but I do know that my own Fbx Exporter exports all four uv channels if present, as well as skinned meshes and baking pbr materials into diffuse, specular and normal maps.
Right that’s also why it wasn’t my first suggestion. If all you want is a static mesh I suspect Unity’s solution will work for you. But I can’t make promises on their behalf.