Question by
Porcubear · May 04 at 04:02 AM ·
mousepositionvector2screentoworldpoint
Trying to make pointer, but ScreenToWorldPoint wont work
Heres my code void FixedUpdate() { Vector2 mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition); transform.position = mousePosition; Debug.Log(Camera.main.ScreenToWorldPoint(Input.mousePosition)); }
But no matter how much i move the mouse, the debug log says it isnt working. Id love some help.
Comment