I have a prefab in the scene and I want to access the child of this collection. The structure of this collection is as follows:
PauseMenu
UI_Resume
TextField
TextField2
UI_Side_Back <---- (I need this child)
UI_Home
transform.FindChild
returns only the parent of the first level and loop
in that the transformation is also a loop in the child of the first level:
foreach (Transform item in PooledPause.transform) {
Debug.Log(item.name);
}
I think it should be a recursive method or something like that. How can I find this baby?
source
share