I have one doubt, how to get Child object child. i have one parent Gameobject name bed_1 that parent have four child object in that four child object one child have another 5 child how to get that 5 child ! plz replay soon as possible
@Abbasjahir
“Thanks for your answer but i am uploading runtime Gameobject i want that child when clicking that 3D model.”
There is a small language barrier between you and the community, but I think what you are trying to do is casting a ray from the mouse position, which then selects the child->child GameObject.
@FMGtm Yeah i trid using GameObject chil4 = selectedObject.transform.GetChild(3).GetChild(3).gameObject;
Thanks for your answer but i am uploading runtime Gameobject i want that child when clicking that 3D model.
– Abbasjahir