[Possible Bug] transform.Find does return "null" in one case

Unity Version 2018.1.1f1

Hello,

in my script I call:

myGameObject.transform.Find(“AttachmentPositions”)

and

myGameObject.transform.Find(“Attachments”)

Both GameObjects “AttachmentPositions” and “Attachments” are basically identical. No components. Active. Parented to the same GameObject. Correctly named. And so on. Debug.Log(myGameObject.transform.childCount) returns the correct number of children.

myGameObject.transform.Find(“AttachmentPositions”) returns correcty the searched Transform.
myGameObject.transform.Find(“Attachments”) returns always “null”

If I rename the second GameObject to “123” instead of “Attachments”, transform. Find(“123”) returns the correct Transform. Any idea whats going on? Is this a bug?

You could try providing the full path name of the child objects, I had a similar problem when trying to find my parented child objects, so you would do this , myGameObject.transform.Find(“ParentObjectName/AttachmentPositions”) myGameObject.transform.Find(“ParentObjectName/Attachments”)