Hi,
I am Selecting an object(with attached Rigidbody) using screen touch using following code.
if (Physics.Raycast(ray, hit, Mathf.Infinity)) {
SelectedObject = hit.transform.gameObject;
}
Object is selected fine but the problem is that when ever I select a child object (Having Rigidbdoy) of a parent Object (Also has Rigidbdoy). Its parent is selected. But I want to select Child Object to move is some where in game play.
thanks