procedural generation
When generating, place them at certain intervals to facilitate subsequent instantiation and merging.
Instantiate
Ctrl A , instance independence
M Put the independent instances into a collection for easy management
Re-select the procedural model, Visible Geometry -> Mesh, then the instance will disappear and be placed together with the independent instance just now
Select all objects in the collection, Ctrl J, enter vertex M and merge by distance (because there are overlapping vertices)
P is separated by loose blocks. The instantiation is completed at this time and can be imported into Unity Unreal for use.
Blender's procedural generation function is still not perfect enough. The reason for this is that Blender's geometry node settings display as Alpha clamped/mixed materials will disappear (UV problem, UV related nodes are required), so the material can only be set on the instance. Final implementation example