I've created a new ScrollView in Unity. How do I change which mouse button is used to scroll in ScrollRect (through script or in the editor).

By default it's the left mouse button. I'd like to be able to change this to another mouse button.

I'd also like to be able to use a keyboard key and disable it altogether (via script without also disabling the scrollbars), but mainly I at least want to change it from the left mouse button.

share|improve this question
up vote 2 down vote accepted

Grab the UI source from bitbucket. Default input should be changed by changing those left mouse button input.Unity UI source

Or you may override those methods.

share|improve this answer
1  
Thanks. Here's a simple code example if anyone stumbles upon this and needs one: answers.unity3d.com/questions/1203095/… – nsfnotthrowingaway Jun 16 '16 at 12:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.