I want to connect two objects by script and make them facing each other faces (I want player to chose two faces for connection and then connect it). Any ideas how to do it?
It really depends on what you mean by connect. The word “Connect” can mean a lot of things: Logically the same color? Different? Using physics? Connected on the net? Something else?
Start by finding an existing game that already does what you mean, then go find some Youtube tutorials on how to make it in Unity and see how they did it.
I want to instantiate an object and place it like on picture by script. For this one “Connect” is placing with right rotation. Sorry for misunderstanding
I would look at some jigsaw puzzle examples on youtube to see how they connect pieces together.