Rewriting a ScrollView

“Native” UnityGUI ScrollView is kinda buggy, so I decided to write my own.

I’m using a ScrollBar (less buggy :)) plus content area that serves as a host for container’s children if in scrollable mode.

Although it seems easy, this single issue made me rewrite many areas of the framework.

It’s a huge win because it won’t use ScrollView anymore. And I’m ready for the next step – dumping the scrollbar altogether and creating my own scrollbar control (track + thumb + up/down buttons). This will make the framework much more independent of UnityGUI, so it would be possible to wrap it around other renderers.

Also, now I’m able to control the easing, so the scrolling process could be tween-able, which makes a great effect.



Posted in News