Answers for "dect a mouse click 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

C# Answers by Framework

Browse Popular Code Answers by Language