In my Hierarchy, I have a gameobject like this GameObject/GameObject, the parent and child nodes have the same name. i want get the child gameobject, i used the flowing code:
GameObject parent = GameObject.Find("GameObject");
Transform childTransform = parent.transform.Find("GameObject");
this code work well in unity Editor, but when i build it out, the childTransform is null, why? I'm confused about it.
Does anyone know why