How to Create Button-Controlled Carousel (Disable Constraint-Based Scroll)?
Hello everyone,
I'm trying to create a horizontal carousel of items and would appreciate some guidance on the best approach for its state management.
I've attached an video of my layout
My Setup:
I've structured my list with multiple reusable components, similar to a Data-Bound List.
I have already implemented a functional scroll mechanic using Constraints. This setup allows the entire list to be moved horizontally through direct input (like dragging).
My Goal:
My objective is to override or replace this direct, constraint-based scrolling with a more controlled navigation system:
Completely disable the direct scroll/drag functionality that the constraints currently provide.
The list should only be navigable by clicking the on-screen "Next" and "Previous" arrow buttons.
A button click should animate the list to the next "page" or set of items.
My Questions:
What is the best practice in Rive for overriding or disabling a Constraint-based input system in favor of a State Machine-controlled one?
Should I try to disable the constraints dynamically, or is it better to build the animation logic from scratch without them and just use the State Machine to control the group's X-position?
Is there a recommended way to structure the State Machine for this kind of paginated logic (e.g., using a Number Input to track the current page)?
I feel like I'm close but am struggling with the correct way to make the State Machine take full control from the existing constraints.
Any advice or examples would be a huge help. Thank you!
Mc5.mp4