Answers for "shoot on click position of mouse unity"

C#
1

unity mouse click position

Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);

RaycastHit hit = new RaycastHit();

if (Physics.Raycast(ray, out hit))
{
	return hit.point;
}
Posted by: Guest on May-02-2020

Code answers related to "shoot on click position of mouse unity"

C# Answers by Framework

Browse Popular Code Answers by Language