示例#1
0
        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();
                    };
                }
            }
        }
示例#2
0
 static void AddSliderPrefab()
 {
     PaginationUtilities.InstantiatePrefab("Slider");
 }
示例#3
0
 static void AddHorizontalPaginationPrefab()
 {
     PaginationUtilities.InstantiatePrefab("HorizontalPagination");
 }
示例#4
0
 static void AddVerticalPaginationPrefab()
 {
     PaginationUtilities.InstantiatePrefab("VerticalPagination");
 }
示例#5
0
 static void AddSliderScrollRectWithNestedScrollRectPrefab()
 {
     PaginationUtilities.InstantiatePrefab("Slider - ScrollRect (With Nested ScrollRect)");
 }
示例#6
0
 static void AddTabsHorizontalScrollRect()
 {
     PaginationUtilities.InstantiatePrefab("Tabs - Horizontal - ScrollRect");
 }
示例#7
0
 static void AddVerticalPagePreviewsPrefab()
 {
     PaginationUtilities.InstantiatePrefab("Page Previews - Vertical");
 }
示例#8
0
 static void AddHorizontalPagePreviewsPrefab()
 {
     PaginationUtilities.InstantiatePrefab("Page Previews - Horizontal");
 }
示例#9
0
 static void AddSliderScrollRectPrefab()
 {
     PaginationUtilities.InstantiatePrefab("Slider - ScrollRect");
 }
示例#10
0
 static void AddVerticalPaginationScrollRectPrefab()
 {
     PaginationUtilities.InstantiatePrefab("VerticalPagination - ScrollRect");
 }
示例#11
0
 static void AddHorizontalPaginationScrollRectPrefab()
 {
     PaginationUtilities.InstantiatePrefab("HorizontalPagination - ScrollRect");
 }