Unity Page Slider
Search Results for

    Show / Hide Table of Contents

    Class PageDot

    This class represents a single dot indicator used for navigation in a paginated view. It provides properties for its active state and index, and events for state changes and presses.

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

    Fields

    OnActiveStateChanged

    Declaration
    public UnityEvent<bool> OnActiveStateChanged
    Field Value
    Type Description
    UnityEvent<bool>

    OnPressed

    UnityEvent with an integer parameter that is invoked when the dot is pressed. The parameter represents the index of the pressed dot.

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

    Properties

    Index

    Gets or sets the index of the page dot within the paginated view.

    Declaration
    public int Index { get; set; }
    Property Value
    Type Description
    int

    IsActive

    Gets the active state of the page dot.

    Declaration
    public bool IsActive { get; }
    Property Value
    Type Description
    bool

    Methods

    ChangeActiveState(bool)

    Changes the active state of the page dot and invokes the OnActiveStateChanged event.

    Declaration
    public virtual void ChangeActiveState(bool active)
    Parameters
    Type Name Description
    bool active

    True to set the dot active, False to set it inactive.

    Press()

    Invokes the OnPressed event with the dot's index when the dot is pressed.

    Declaration
    public void Press()
    In This Article
    Back to top Generated by DocFX