Class PageView
This class represents a view or page within a paginated view system. It provides events to signal changes in the active state of the page.
Inheritance
System.Object
PageView
Namespace: TS.PageSlider
Assembly: .dll
Syntax
public class PageView : MonoBehaviour
Fields
OnActiveStateChanged
UnityEvent with a boolean parameter that is invoked when the active state of the page changes. The parameter is True if the page becomes active, False if it becomes inactive.
Declaration
public UnityEvent<bool> OnActiveStateChanged
Field Value
| Type | Description |
|---|---|
| UnityEvent<bool> |
OnChangingToActiveState
Declaration
public UnityEvent OnChangingToActiveState
Field Value
| Type | Description |
|---|---|
| UnityEvent |
OnChangingToInactiveState
UnityEvent that is invoked when the page is about to transition to the inactive state.
Declaration
public UnityEvent OnChangingToInactiveState
Field Value
| Type | Description |
|---|---|
| UnityEvent |
Methods
ChangeActiveState(bool)
Invokes the OnActiveStateChanged event with the provided active state.
Declaration
public void ChangeActiveState(bool active)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | active | True to signal the page becoming active, False for inactive. |
ChangingToActiveState()
Invokes the OnChangingToActiveState event to signal that the page is about to become active.
Declaration
public void ChangingToActiveState()
ChangingToInactiveState()
Invokes the OnChangingToInactiveState event to signal that the page is about to become inactive.
Declaration
public void ChangingToInactiveState()