How to check if a player click on a object: Android Mobile

Is there a way to see if an player clicked on an object on mobile (android)?


does “Input.mousePosition” work with mobile?

You can use

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

if (Physics.Raycast(ray, out hit))
      //your code

It is not the best way of doingit, but it works