private void addAlbumType(AlbumController.EAlbumType albumType) { CGScrollView scrollView = Instantiate(PrefCGScrollView); scrollView.transform.SetParent(CGScrollViewListPanel.transform, false); scrollView.Set(AlbumId, albumType); scrollView.Hide(); _cgScrollViewList.Add(scrollView); AlbumTypeToggle toggle = Instantiate(PrefAlbumTypeToggle); toggle.transform.SetParent(ToggleGroup.transform, false); toggle.Set(ToggleGroup); toggle.Set(this, albumType); }