/opengui

Open source GUI framework for Unity

Primary LanguageJavaScript

What?

It's a GUI framework for Unity that aims to keep things as simple as possible while keeping draw calls to an absolute minimum. I am developing this in tandem with my Deus Ex-based game project The Vongott Chronicles

Why?

GI frameworks for Unity are overpriced, and the built-in API is a ridiculous resource hog with every widget requiring one or more draw calls each. And we can't expect Unity to provide a decent UI system "sometime in the future", when we are ready to develop games now :) So this framework is using the OpenGL API to render widgets, and trying its best to be simple and easy to use at the same time.

Demo

demo

Documentation and tutorials

In the wiki

FAQ

Does OpenGUI work with C# even though it is written in UnityScript?

Yep, as long as the provided directory configuration is maintained and .cs files are in a subfolder, .e.g /Assets/Scripts. This is because of the Unity compilation order.

I have created widgets, but nothing is displaying. What might be wrong?

Make sure your OGPage object is the current one, and make sure your OGRoot object has a Camera component

Where are the tutorials and documentation?

In the wiki

What about examples?

This repository serves as one. Just download/clone the whole thing.

How can I align objects relatively to the screen?

The "anchor" and "pivot" properties of the OGWidget and subclasses take care of that.

How do I deal with different aspect ratios?

Make sure to use "anchor" and "stretch" to position your content, if you want it to be flexible.

License

Creative Commons License