Combine multiple MeshInstance3D into 1 MeshInstance3D

Godot Version

4.3

Question

Is it possible to “combine” multiple MeshInstance3D into 1 single MeshInstance3D in Godot via gdscript, like in Blender combining 2 3D models together?

Not saying it’s easy, but if your MeshInstance3D has a mesh, you can use this:
MeshInstance3D

So you’d call mesh.surface_get_arrays(), then instantiate the ArrayMesh and call the add_surface_from_arrays function. Repeat this for every mesh you want to combine into one mesh.

You can then set the arraymesh as the mesh for your meshinstance3d. I doubt it will leave any texture you might have on your mesh intact.

I use arraymesh for a different purpose, but you can see how the mesh is set and a material is applied:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.