Here’s the code, however i’d like to engage an object that is seen by my camera
for (var width = 1; Screen.width; width++){
for (var height = 1; Screen.height; height++){
var ray = Camera.main.ScreenPointToRay (Vector3(width, height, 0));
var hit : RaycastHit;
if (Physics.Raycast(ray, hit, Mathf.Infinity ) && hit.transform.tag == tagLock){
Debug.Log("finalmente!!");
}
}
}