Unity Page Slider
Search Results for

    Show / Hide Table of Contents

    Using Predefined Content

    This guide walks you through creating a Page Slider with a predefined set of pages and content.

    1. Add the Page Slider

    1. Create a new Canvas GameObject.
    2. In the Project window, locate the PageSlider prefab within your project's folder structure: PageSlider/Prefabs/.
    3. Drag the PageSlider prefab from the Project window and make it a child of the Canvas in the Hierarchy.

    Drag a PageSlider prefab as a child of the Canvas

    2. (Optional) Add Page Dots Indicator

    1. In the Project window, locate the PageDotsIndicator prefab within your project's folder structure: PageSlider/Prefabs/.
    2. Drag the PageDotsIndicator prefab and make it a child of the PageSlider in the Hierarchy.

    Drag a PageDotsIndicator as a child of the PageSlider

    1. In the Inspector window, assign the PageDotsIndicator to the Dots Indicator field.

    Assign the PageDotsIndicator to the PageSlider

    3. Add a new Page

    1. Select the PageSlider GameObject.
    2. Click the Add Page button in the Inspector window.

    Add a new page

    1. Expand the PageSlider hierarchy to locate the newly created Page_X/Content GameObject.

    Expand the PageSlider hierarchy

    1. Select the Content GameObject and add your desired UI elements to configure the page layout.

    Configure the page view with UI elements

    1. Repeat the previous steps to add more pages.

    Helpful links

    • Understand the main concepts by reading the getting started guide
    • For a more in-depth explanation, check out this video.
    • Explore the API Reference for more details.
    • Modify the source code available on GitHub.
    • Install directly from the Unity Asset Store.
    • Get in touch with me at tomazsaraiva.com.
    In This Article
    Back to top Generated by DocFX