View on Asset Store (opens in new tab)
Package details
- Latest version
- 2.6.1
- Last updated
- First released
- Unity version
- 2022.3.62 or later
- Package size
- 2.2 MB
- Files
- 27
- Favorites
- 248
- Views in the past week
- 6
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $6.80 on
Keywords
Carousel Toggler
A Carousel for uGUI. As you let go of scroll, it will center the nearest toggle inside and turn it on. Easy setup, very flexible, it supports dynamic content in any layout.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 7
Carousel Toggler screenshot 1
About this asset
For Unity 5 GUI
Still working in 2020!
Get fast support via email link below!
Easily setup a snapping scrollable object, filled with anything and with any structure, in any orientation. The scroll will snap to the nearest child toggle. Highly stable and flexible!
2.5: EVENTS and NEIGBORS ONLY RESTRICTOR
2.3: EMBED A HORIZONTAL CAROUSEL IN A VERTICAL SCROLLRECT (or a vertical carousel in a horizontal scrollrect) -- excample scene provided!
2.2: Fixes to pivot math, now non-stick mode works properly in edge items
2.1: Added a switch for scaled/unscaled time
2.0: Rotator now wraps and provides a method to manually trigger a step! see the new Counter example
1.9.1: inertia is now more reliable
1.9 UPDATE! same price, more features! TWO NEW EXAMPLE SCENES:
-CASINO SLOTS
-WRAPFIELD
NEW FEATURES:
-Neighbors only will look at the sorted list of toggles and only pick between current,previous or next.
-Now snapping respects the ScrollRect.
-Horizontal/Vertical movement setting.
-Snap toggle: You may disable snapping while keeping the other features.
-Inertia: Just like ScrollRect, this had to be done so it plays nice with wrapping
-Wrapping: Wrap horizontally or vertically while dragging or while sliding
-Reveal: If your ScrollRect has a Mask, this will disable it while you're dragging. Good for combo boxes.
-AddImpulse endpoint: To apply speed in code
-Stop endpoint: To stop sliding in code
-moving property: To find out if the slider is moving on it's own (either sliding or on the way to the closest toggle)
Features:
-3 Prefabs for quick start
-Make a standard ScrollRect snap to and turn on any child Toggles it may have.
-Horizontal, vertical, bidirectional snapping using any UI elements nested inside.
-Fully compatible with uGUI standard scrollbars. -Canvas Scaler support.
-Screen space or world space, rotated, scaled.
-Runtime rotation, scaling, translation support (it doesn't break!)
-Bonus Carousel Rotator cycles your toggles, working even if you add/remove toggles dynamically.
-Bonus Carousel Transfer Scrolling lets you embed a horizontal carousel in a vertical scrollrect and scroll both at the same time as requested! CAVEATS:
-wrap is underdeveloped: setup of dummy objects for seamless wrap is manual and distance calculations for choosing where to snap to are not accounting for wrap, causing the wrong toggle to be picked when releasing drag near the wrapping edge. This has been difficult to fix.
From the publisher's Asset Store listing.
Technical details
- Easy to use prefabs for common use cases: generic, vertical and horizontal layouts
- Many options: Wrapping, Snapping, Snap on startup, inertia and more!
- Low resource use: when not scrolling, all code is mostly skipped
- Flexible: works in world space Canvas, scrolling in any axis.
- Includes a helper to auto-rotate between toggles in hierarchy order
- Includes a helper to transfer scrolling to an embedded cross-axis carousel (and an example scene)
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2022.3.62f3 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.