Hi I cast ray like this.
I have to ignore the layer number 8
I have assigned the Layer number 8 to Parent Object and I need to cast ray on its child object....
Raycast on child gives parent name in hit.transform.name
I have to ignore the layer number 8
Code (csharp):
Raycast on child gives parent name in hit.transform.name