Hi, I am using a Physics.Raycast to tell if the player is pointing at a object, and i can not think of a way to return the object that it hit. So i can add a item to the object.
Code (CSharp): if (Physics.Raycast (position, target, out raycastHit)) { return raycastHit.collider.gameObject; }