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:
Comments
Post a Comment