Merging Objects in C++

I do not recommend combining Cubes (Static mesh cubes) so as to make a Terrain Generation similar to Minecraft. Take a look at this video that shows the performance issues when combining cubes and what he does to improve performance:

What this person does (in Unity) you can do in Unreal with procedural meshes. This is a good article to take a look at for Procedural Meshes: