Hello,
How to set position in ScrollView?
For example I have 300 buttons inside ScrollView and want to set position to make 200-th button visible.
Hello,
How to set position in ScrollView?
For example I have 300 buttons inside ScrollView and want to set position to make 200-th button visible.
You can use GUIStyle.CalcHeight to get the height of a line, then set the scrollview .y position to 200*calculatedHeight to go to the 200th button.