disabling horizontal scroll bar on beginscrollview

can someone show me how to disable the horizontal scroll bar in this code? I cant seem to figure it out. Thanks for any help.


Later: solved, Any examples of an iphone-like scrollview using unity GUI? - Questions & Answers - Unity Discussions

This solution works perfectly for me.

GUI.BeginScrollView(Rect, Vector2, Rect, GUIStyle.none, GUIStyle.none);

In fact the only reason you would eliminate the (stupid) scroll bars Unity adds is when, of course, you are on a touch device and you want the user to scroll with their finger. Fortunately this is easy, here is the full solution

GUILayout.BeginScrollView(Vec2, GUIStyle.none, GUI.skin.verticalScrollbar, GUILayout.Width(100f), GUILayout.Height(100f));

diables only the horizontal one.