Unity Discussions
i was trying to face the gun to the mouseposition and my script and error is down below.,i was just trying to rotate the gun to the mousePosition but didn't work this is the error and script..
Questions & Answers
legacy-topics
NickStike
September 22, 2020, 7:41pm
1
script
error
and the error is
UTus
September 23, 2020, 1:08am
2
Use this : Camera.main.ScrrenToWorldPoint(Input.mousePosition);