Reputation: 43
I am trying to adjust the scrollbar scroll speed because it is too slow. I only found this on the web. But I don't know how to use it.
UI.ScrollRect.scrollSensitivity
I am trying this to create a Text
that contains some information (like what's new in unity 5.3? )
Upvotes: 1
Views: 6134
Reputation: 2720
I think I know what is your problem, and I hope this is the solution for it.
You were trying to set the value of UI.ScrollRect.scrollSensitivity
without an instance of ScrollRect
object.
To set the sensitivity you need an instance of it and set it like this:
public ScrollRect scroll;
void Start()
{
scroll.scrollSensitivity = 27f;
}
Also you can set it directly from Inpsector:
Upvotes: 4