How to snap objects or vertex together?

To solve such problems, I created a plugin. You can see here UE4 UE5 Unreal Engine 4 Unreal Engine 5 Vertex Snapping. Snapping helper plugin - YouTube