Answers for "unity 2d how to set an object or the mouse position"

C#
1

unity 2d how to set an object or the mouse position

Vector2 mousePos = new Vector2(camera.ScreenToWorldPoint(Input.mousePosition.x), camera.ScreenToWorldPoint(Input.mousePosition.y));
Posted by: Guest on February-26-2021

Code answers related to "unity 2d how to set an object or the mouse position"

C# Answers by Framework

Browse Popular Code Answers by Language