• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by martin-protostar · Feb 16, 2016 at 01:00 PM · guiuiscrollviewscrollscrollbar

How to disable ScrollView dragging

I have a scrollview that scrolls when I drag and when I use the scrollbar, but I want to disable dragging the scrollview. How do I do that?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by martin-protostar · Feb 19, 2016 at 12:41 AM

To disable dragging, set Vertical & Horizontal Scroll to false, then it can only be controlled by a scrollbar.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image calpolican · Feb 15, 2018 at 02:28 AM 0
Share

Tried this and the scrollbar disappeared. In my opinion it's a false statement, but if I missed something please tell.

avatar image ulissescad · Sep 19, 2019 at 07:40 PM 0
Share

Thanks, help me a lot!

avatar image
1

Answer by panayiotismilios · Aug 18, 2020 at 04:20 PM

In the ScrollView object, set the movement Type from Elastic to Clamped

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by renanbp · May 20, 2020 at 03:58 AM

I think I just found the answer. In the inspector for the ScrollRect Monobehavior, if you remove the reference to the Viewport there (set it to none), it appears that it solves the problem without causing any other issues. (Probably that's the only use for this reference, since the Content is the one manipulated by the scrolling)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why is my scrollbar not working? 3 Answers

Scroll Rect doesn't display items Unity 5.6 2 Answers

UGUI ScrollRect automatic scroll? (Chat) 1 Answer

GUIlayout scrollbar, Not working well... 1 Answer

Where can I edit UI.ScrollView? 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges