從子物件中按名稱查詢 GameObjects

Transform tr = GetComponent<Transform>().Find("NameOfTheObject");
GameObject go = tr.gameObject;

如果沒有找到,Find 將返回 null

優點 缺點
搜尋範圍有限,定義明確 字串是弱引用