Unity class for resizable GUI

Hi guys. I’m going to be using my class that I wrote earlier for user interface during this Ludum Dare, so I’m sharing it here for those who want a quick solution for fully responsive GUI with Unity without using any external plugins and stuff. The original post is here: http://blog.sergeymohov.com/fully-responsive-user-interface-with-unity-gui/. You’ll find the API there.

Get the GUISizer class here: http://goo.gl/wgdFX6. You can also download an example project here: http://goo.gl/5F5PIY. Or, if you prefer, the same thing as a UnityPackage that you can import into your own project: http://goo.gl/GKczDm.  The source code is also added to the bottom of this post in case the links die. If you use C#, then feel free to put GUISizer.cs anywhere you want in your project. However, if UnityScript is your cup of tea, then it has to go into your Plugins folder. Otherwise you won’t be able to access its methods and structures.

Pastebin: http://pastebin.com/MDazhK6L

Tags: gui, interface, tools, unity, unity3d