Demos
Example demo scenes for ScrollSnap component.
Last updated
Example demo scenes for ScrollSnap component.
Last updated
Example demo scenes are under Assets\SGT3V\Scroll Snap\Demos folder.
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.
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.
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.
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.
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.
This demo demonstrates a basic implementation of the Scroll Snap Infinite component.