Placing items.

Hi all,

I am trying to place a 3d Object in the gameworld based on 2d screen coordinates.

The reason for this is that I am making a game where you must drag an item from a box on one side of the screen and I dont feel that a button works for me aesthetically.

Is it possible to do this?

What I am trying to do is to place an empty game object exactly where my GUI textures are, however to ensure that my GUI remains constant with every resolution I used the screen width and height to place my textures. So i need to use the same principle in the placement of these objects.

Regards

Sorry to double post but is it possible to convert a line of code such as :

(Screen.width - (Screen.width/45));

into an x position in the game world?

Probably Camera.ScreenToWorldPoint and there are a couple of variations.

Thank you, I dont quite think that this method is going to work for me anymore.

Would it be possible to have an OnMouseDown function running that detects whether the GUI texture has been clicked upon?