static void AddPagePrefab() { var page = PaginationUtilities.InstantiatePrefab("Page", typeof(UI.Pagination.Viewport)); if (page != null) { var pagedRect = page.GetComponentInParent <PagedRect>(); if (pagedRect != null) { UnityEditor.EditorApplication.delayCall += () => { pagedRect.UpdateDisplay(); pagedRect.ShowLastPage(); }; } } }
static void AddSliderPrefab() { PaginationUtilities.InstantiatePrefab("Slider"); }
static void AddHorizontalPaginationPrefab() { PaginationUtilities.InstantiatePrefab("HorizontalPagination"); }
static void AddVerticalPaginationPrefab() { PaginationUtilities.InstantiatePrefab("VerticalPagination"); }
static void AddSliderScrollRectWithNestedScrollRectPrefab() { PaginationUtilities.InstantiatePrefab("Slider - ScrollRect (With Nested ScrollRect)"); }
static void AddTabsHorizontalScrollRect() { PaginationUtilities.InstantiatePrefab("Tabs - Horizontal - ScrollRect"); }
static void AddVerticalPagePreviewsPrefab() { PaginationUtilities.InstantiatePrefab("Page Previews - Vertical"); }
static void AddHorizontalPagePreviewsPrefab() { PaginationUtilities.InstantiatePrefab("Page Previews - Horizontal"); }
static void AddSliderScrollRectPrefab() { PaginationUtilities.InstantiatePrefab("Slider - ScrollRect"); }
static void AddVerticalPaginationScrollRectPrefab() { PaginationUtilities.InstantiatePrefab("VerticalPagination - ScrollRect"); }
static void AddHorizontalPaginationScrollRectPrefab() { PaginationUtilities.InstantiatePrefab("HorizontalPagination - ScrollRect"); }