If you have any other questions on getting mouse position, please leave it in the comment box below. If () // returns true when the mouse left button is pressed Here is the sample code for that using UnityEngine Similar to the example in the old input system if you want to get the mouse position only when the left button is pressed you have to replace “Input.GetMouseButtonDown(0)” with “”. } Get mouse button down Unity new input system Step2: Modify the above code to suit the new input system
0 Comments
Leave a Reply. |