Horizontal Scalable Scroll Snap
Horizontal UI snap carousel for ScrollRect. Distance-based scaling, swipe, event on select, ready prefabs, optional “Name” label animation.
by HungryCraft
Price History +
HorizontalScalableScrollSnap is a drop-in, production-ready horizontal snap panel for Unity UI (UGUI).
It centers items, scales them by distance to the viewport center, supports swipe navigation, and exposes an event when selection changes. Comes with ready prefabs and an optional ScaleToggle label animation if your item contains a child named Name.
What’s included
- HorizontalScalableScrollSnap (component, requires ScrollRect)
- IHorizontalScalableScrollSnap (public API interface)
- ScaleToggle (bonus label scale animation)
- PanelInitializer (demo populator)
- Prefabs: HorizontalScrollPanel, PanelItem
- Demo scene + PDF manual
Quick setup
- Use the HorizontalScrollPanel prefab (ScrollRect + Viewport + Content).
- Ensure Content has HorizontalLayoutGroup.
- Add HorizontalScalableScrollSnap to the object with ScrollRect.
- Assign Content and Panel Item Prefab (use the provided PanelItem).
- Add items at runtime via AddItem(prefab) or the PanelInitializer.
- (Optional) In your item prefab, add a child Name with ScaleToggle to auto-show only on the selected item.
Why this asset
- Zero startup flicker: first frame is already centered, scaled, and clean.
- No deps (DOTween, etc.). Works with URP/HDRP/Built-in.
- Mobile-friendly: lightweight, no per-frame allocations after build.