Single directional scrollrect

Hi devs,

Is it possible to have a scrollrect only scrollable in one direction?

Currently my problem is that i can stop the scrolling rect with “StopMovement()”, but during the scroll/drag event of the user I cant constrain in to one direction.

I didn’t find a solution so far, maybe I’m using the wrong search terms…

Any help is hint is highly appreciated!

Rene

By single direction, do you mean only horizontal or only vertical, or do you want a vertical scroll rect that can only move left or only right or similar?

Hi larku,

The second, I want to have a vertically scrollrect just to scroll down, for instance.

My concrete problem: I have purchased this asset: Unity Asset Store - The Best Assets for Game Making

It’s a date/timerpicker like you know from mobile devices. Now i want to constrain the date to a specific max date, if you reach it you can’t go further, but you can go back.

Stop at a max date, but you can go backwards? :slight_smile: But backwards isn’t up?
Can you edit that asset to stop at a certain date?

You could override the scroll & drag events in a derived class, I imagine, if you wanted to do that.