Get Mouse Position Unity 3d Code Example


Example 1: unity get mouse position


Vector3 worldPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);

Example 2: how to find the mouse position unity


Vector2 mousePosition = new Vector2(Input.mousePosition.x, Input.mousePosition.y);

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable