Пример #1
0
        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>();
        }
Пример #2
0
        public static ScreensManager Configure(GameObject go)
        {
            var content = VamPrefabFactory.CreateScrollRect(go);

            return(content.gameObject.AddComponent <ScreensManager>());
        }