Programming plug-in GUI's

54e97bcc4e4a2fc8f5f05594afd1683a
0
Gnarlyman 101 Sep 20, 2012 at 23:32

Hi there,

This questions regards Unity 3D, and I just posted the same question to the Unity dev. forums as well. However, the responses here tend to be both faster and more helpful by and large, so I wanted to see if there was anyone over here that might have a good idea about my question.

I am starting to work on a plug-in for Unity, which I hope to submit to Unity eventually for consideration for the asset store. I would like to know how to go about programming the GUI elements of the application. Is this usually done separately from Unity, say, in a C++ or C# environment? If so, how so? Basically, I do not know how plug-in developers implement their code, and what platform(s) they use. I need the plug-in to be able to access most of the elements of Unity via scripting as well, and I would also like to know how far the Javascript and C# scripting within Unity goes for these purposes. Do you need the Unity source code for any or all of the above needs as well?

Thanks!
-Sam

2 Replies

Please log in or register to post a reply.

B20d81438814b6ba7da7ff8eb502d039
0
Vilem_Otte 117 Sep 22, 2012 at 14:31

Hi,

I don’t have experience in Unity, but GUI is often done using some 3rd party library (Crazy Eddie’s GUI - CEGUI, or such). Of course you can write your own GUI, but it takes quite a long time to have robust and fast GUI with lots of components. Also it can take even longer if you need some language for describing your GUI (e.g. gui script).

You’ll do best with some ready 3rd party library (because programming gui library is time-expensive even if you know how-to and developed one or two before), I just did a quick google search for you:
1.) Basic unity GUI - it should be okay to use this for most things you need - http://docs.unity3d.com/Documentation/Components/GUIScriptingGuide.html
2.) Cegui-unity - if you perfer & know already CEGUI and you don’t want to learn another GUI like unity-gui, read more here - http://sourceforge.net/projects/cegui-unity/
3.) And yet another option, bitverse-unity-gui http://code.google.com/p/bitverse-unity-gui/ - I just quickly went through the page, but it seems like extension to Unity GUI that allows you to visually edit unity-gui.

54e97bcc4e4a2fc8f5f05594afd1683a
0
Gnarlyman 101 Sep 22, 2012 at 17:17

Vilem–

That is terrific information; thank you! I am looking it all up right now. I thought of another question that pertains to all of this: would any of the above resources allow node-creation? As in, I would like to be able to create a GUI that utilizes drag-able node creation, with the ability to create connections between the nodes as well.