- Home /
Question by
ezgiadymn1907 · Oct 26, 2020 at 03:13 PM ·
gamemousecontrolsgame developmentpositions
Detect the position of the mouse press?
Detect the position of the mouse press?
Comment
Answer by wewewu · Oct 26, 2020 at 03:30 PM
Something like this:
cam.ScreenToWorldPoint(Input.mousePosition); //only Input.mousePosition if screen space
and for detecting mouse button down/up:
Input.GetMouseButtonDown(0) //left button
Your answer
Follow this Question
Related Questions
Camera movement independent of player control 1 Answer
Mouse Swipe and Code Efficiency 0 Answers
Service prices 0 Answers
How to shoot to where "Mouse" is pointing? 1 Answer
Ensuring Correct Call Order 0 Answers