Get click position on object/texture

How can I determine which position of an object the user clicked?

I have a cube (wall) the user should click on to determine a certain value.

In the documentation of RaycastHit.textureCoord is an example how you can do what you probably want.