I couldn’t sleep, so instead I decided to work on my programming skills. More specifically, I learned how to make Graphical User Interfaces (GUIs) in Unity. I always had a really difficult time with GUIs in Torque Game Builder/Engine (TGB is now called Torque 2D and TGE has since been replaced with the much more advanced Torque 3D) so I was worried that it would be very hard to figure out.

I followed the Unity GUI Scripting Guide and just made a stupid test scene with a bunch of GUI elements on screen. It’s surprisingly easy to get basic a GUI in place, though I’m sure it will take quite a bit of work when I start to get into reskinning the elements.

So after learning the basics of how to do it, I wasn’t really sure what to do since I didn’t have any real use for a GUI at the time. Then while I was working on improving my isometric camera script I decided to add a GUI to my Isometric Camera Demo that allows you to modify the camera settings in real-time to see how they work.


A GUI on the IsoCam Demo

And there you have it. Progress!

EDIT: 2013-08-29 I’ve added a UnityPackage (created in Unity 3.5.7 for maximum compatibility) with the scripts used in this demo. Download the demo/source here.