Suppress Horizontal Scrollbar?

Is it possible to suppress the horizontal scrollbar in GUI.ScrollView completely?

2 Answers

2

As far as i know it’s not possible. Well, you can use an GUIStyle without images but the function is still there. Another way would be to use two nested GUI.BeginGroup with one GUI.VerticalScrollbar and implement the scrolling yourself.

edit

I’ve written a quick implementation of such a scrollview. Not yet finished but it works.

does this work with GUI.Skin? is there a way to convert gui.skin to gui.style?

–

A <a href="http://unity3d.com/support/documentation/ScriptReference/GUISkin.html">GUISkin</a> is just a collection of GUIStyles. I will add a version that uses the default styles from the current skin.

–

set “with” to 0 (example is with vertical , but still)