API reference
API reference
Select your platform
No SDKs available
No versions available

PageScroll Class

Extends UIBehaviour
This component smoothly moves the contentContainer horizontally until the selected page is completely visible, the anchor of the page is at the (0, any) position relative to the parent of the contentContainer when the page anchor is set to "top-left".

Fields

float animationSpeed[Get]
AnimationCurve alphaTransitionCurve[Get]

Member Functions

void SetPageIndex
( int pageIndex )
void ScrollPage
( int direction )
void InjectAllPageScroll
( UnityEngine.UI.ToggleGroup toggleGroup,
RectTransform contentContainer,
List< Page > pages,
int pageIndex )
void InjectToggleGroup
( UnityEngine.UI.ToggleGroup toggleGroup )
void InjectContentContainer
( RectTransform contentContainer )
void InjectPages
( List< Page > pages )
void InjectPageIndex
( int pageIndex )

Protected Functions

override void OnEnable ( )
override void OnDisable ( )
override void Start ( )
virtual void Update ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon