Question about add a Mesh on a Mesh

Hello,

I’m searching for a C#-Code-leading or Coding-inspiration.

I want to Create a Cube/Mesh on another Mesh, by clicking the mousebutton.

Is there an option to save the Mesh-Vertices (or structure) as a positioning-matrix or sth, so i can say “place a cube (or sth else) exactly on this mesh”, like adding a cube on the round side of a Cylinder or sth =))

your inputs are welcome, hope this thread isnt placed wrong =)

PS: I’m afraid my English is a bit rusty.

solved,

very simlpe:

transform.position of the new object is a vertice-position of the mesh