public GameObject GetOrAddGroup(string name) { var o = GK.FindChild(gameObject, name, true, false); if (!o) { o = new GameObject(name); GK.SetParent(o, gameObject, false); o.layer = GK.LayerId("UI"); } return(o); }
public GameObject TryFindChild(string name) { return(GK.FindChild(this.gameObject, name, true)); }