If you’re building things out of cubes, then you should research “Voxels”. Minecraft, for example, allows you to create and destroy blocks at will, and it continually recreates its combined meshes as it goes.
There was once a thread on this forum about how Minecraft is optimized and how you would implement it Unity, which might find interesting.