public static void CreateGroup(MenuCommand menuCommand) { GameObject go = DefaultControls.CreateGroup(GetStandardResources()); PlaceUIElementRoot(go, menuCommand); RectTransform rect = go.GetComponent <RectTransform>(); rect.anchoredPosition = Vector2.zero; rect.sizeDelta = Vector2.zero; }