c# - UI Scrollbar Scroll Sensitivity For Mouse Wheel Scroll -


i trying adjust scrollbar scroll speed because slow. found on web. don't know how use it.

ui.scrollrect.scrollsensitivity 

i trying create text contains information (like what's new in unity 5.3? )

i think know problem, , hope solution it.

you trying set value of ui.scrollrect.scrollsensitivity without instance of scrollrect object.

to set sensitivity need instance of , set this:

public scrollrect scroll;  void start() {       scroll.scrollsensitivity = 27f; } 

also can set directly inpsector:

enter image description here


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -