Unity Page Slider
Search Results for

    Show / Hide Table of Contents

    Class PageDotsIndicator

    This class manages a collection of page dots used for navigation in a paginated view. It provides methods to add, clear, and change the active dot.

    Inheritance
    System.Object
    PageDotsIndicator
    Namespace: TS.PageSlider
    Assembly: .dll
    Syntax
    public class PageDotsIndicator : MonoBehaviour

    Fields

    OnDotPressed

    Declaration
    public UnityEvent<int> OnDotPressed
    Field Value
    Type Description
    UnityEvent<int>

    Properties

    IsVisible

    Gets or sets the visibility of the PageDotsIndicator game object.

    Declaration
    public bool IsVisible { get; set; }
    Property Value
    Type Description
    bool

    Methods

    Add()

    Adds a new page dot indicator to the collection.

    Declaration
    public void Add()

    ChangeActiveDot(int, int)

    Changes the active state of the page dots. It deactivates the dot at the 'fromIndex' and activates the dot at the 'toIndex'.

    Declaration
    public void ChangeActiveDot(int fromIndex, int toIndex)
    Parameters
    Type Name Description
    int fromIndex

    The index of the dot to deactivate.

    int toIndex

    The index of the dot to activate.

    Clear()

    Clears all the page dot indicators from the collection and destroys their game objects.

    Declaration
    public void Clear()
    In This Article
    • Fields
      • OnDotPressed
    • Properties
      • IsVisible
    • Methods
      • Add()
      • ChangeActiveDot(int, int)
      • Clear()
    Back to top Generated by DocFX