Drag and Drop and snap between the edges!

Hi

i’m new in unity i follow your forum often but now i have a question for you.
I looked in the forum and there isn’t a reply to my question. If there is one, please can you post me the link.

So the question is: i have two cubes and i need to drag and drop one of the cubes on the other
cube and when the cube is really near i need to snap it to the other like a magnet but not in the center they need to match the edge of the face!

let me know if all is clear

Thanks,

Roberto

can you post me an example…or something.

And if the other cube is not static so what i mean is i can drag&drop and snap both cubes. How i can check the coordinates?

Thanks,

Roberto