I Have an Empty Object with no collider which has children that are ‘proper objects’ with colliders and meshes etc…
When I click on the Object and do:
RaycastHit hit;
Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), out hit);
hit.collider is Null (of course).
My question is, how can I get the Empty Object on hit?
Is there a way or I should apply a mesh collider on the Empty Object?
If yes, how can I do that?
P.S New to Unity