How would I go about getting what position my mouse is pointing in a game environment? For example, if I'm pointing at the foot of a tree at position (100,50,0), how would I make it get the position of (100,50,0) or where the mousever the mouse would hit?
1 Answer
1Search first. Ask if you get stumped.
Exactly. This is one of the most answered questions out there.
– anon73820239I'm aware of Input.mousePosition. What I'm trying to do at the moment is get the position the cursor is aiming at. And I've been searching for an answer for about an hour. Mind cluing me in?
– anon47478413I've tried to teach you to fish (google search).. but this time i'll just throw the fish at ya. http://unity3d.com/support/documentation/ScriptReference/Camera.ScreenToWorldPoint.html Learn to search though!
– flaviusxvii