Moving objects using mouse.

Hello everyone.

Im currently working on a game that requires clicking somewhere in the world and having the player move that. I currently have the whole movement system working. What i need is some way to move my “waypoint” object to the place you are clicking. Not placed exactly on the mouse but on the terrain where the mouse was “hovering” over.

There are absolutely tons of examples of this from a simple google search:

https://www.google.co.uk/search?q=unity+click+to+move&ie=utf-8&oe=utf-8&gws_rd=cr&ei=QOvsVMHhLtPLaOfNgKgN

You are getting downvoted because you clearly posted here without searching for yourself first