Demos

Example demo scenes for ScrollSnap component.

Example demo scenes are under Assets\SGT3V\Scroll Snap\Demos folder.

1 - Scroll Snap Basic

This is a basic implementation of the component and what you will get when you add it to your scene from the Hierarchy UI/ScrollSnap context menu.

2 - Scroll Snap Index Table

In some cases having a shortcut for jumping to other pages with one click can help. This example scene will show you how Index Table helps you achieve that.

3 - Scroll Snap Use ScrollAmount

Using ScrollAmount value can help you create smooth transform changes, animations, and blending effects. This example shows a 3-page carousel with scale and color changes.

You can refer to the Demos/Scripts/ResizeAndBlend.cs file to see the details.

4 - Scroll Snap With Buttons

This example shows how to use Scroll Snap with button controls. The up button decrements the CurrentPageIndex and the down button increments it. Button functions are named due to the axis and alignment of the component in this example.

You can refer to the Demos/Scripts/ChangeIndex.cs file to see the details.

5 - Scroll Snap With Multiple Pages

Using the right alignment and sizes you can create a category and page structure in your game using Scroll Snap. One ScrollSnap component can be made to follow the changes on another one.

You can refer to the Demos/Scripts/FollowOnSnap.cs file to see the details.

6 - Scroll Snap Infinite

This demo demonstrates a basic implementation of the Scroll Snap Infinite component.

Last updated

Was this helpful?