Lightweight Scroll Snap for Unity
A simple tool to make unity scrollview to be snapped. It includes some default resources and provides various options as well as writing custom transition effects.
"dependencies": { block"com.emrecelik95.lightscrollsnap": "https://github.com/emrecelik95/LightScrollSnap.git"If you don't want to use git, you can download and unzip the repo and move it to Packages folder.
scrollSnap.OnItemSelected.AddListener(OnSelectedItemChanged);
scrollSnap.OnItemSelected.RemoveListener(OnSelectedItemChanged);
private void OnSelectedItemChanged(RectTransform go, int index){}scrollSnap.SmoothScrollToItem(5, 0.5f);scrollSnap.AddItemClickListener(0, () => { Debug.Log("First item clicked!"); });No open issues yet, or sync has not completed.