public DopeSheet() { CreateBackground(gameObject, _style.BackgroundColor); CreateLabelsBackground(); _content = VamPrefabFactory.CreateScrollRect(gameObject); _content.GetComponent <VerticalLayoutGroup>().spacing = _style.RowSpacing; _scrubberRect = CreateScrubber(_content.transform.parent.gameObject, _style.ScrubberColor).GetComponent <RectTransform>(); }
public static ScreensManager Configure(GameObject go) { var content = VamPrefabFactory.CreateScrollRect(go); return(content.gameObject.AddComponent <ScreensManager>()); }