- Home /
How to make a user interface form?
Datagrid, dataset, drop down list, radiobutton, something like what we're seeing userly in user registration form. I want to show up that kind of form in utity3d screen and that would interface with other unity3d objects. Where can I get that kind of referrence?
Answer by Bampf · Apr 19, 2010 at 11:40 AM
UnityGUI allows you to arrange simple controls on the screen like buttons, radio buttons, checkboxes, textboxes and lists. With a little more work you can make windows that behave like dialog boxes. You can arrange controls in a toolbar-like or grid-like arrangement.
http://unity3d.com/support/documentation/Components/GUI%20Scripting%20Guide.html
A couple of features of note: there are two ways to arrange your controls. You can specify positions, widths etc yourself, or you can use GUILayouts which do much of the arranging for you. Note also that the GUI skin can be changed to achieve different looks.
However, there is nothing like a datagrid or dataset built into Unity. There are various ways to get data from a server: http://answers.unity3d.com/questions/658/connect-to-the-sql-database But you will have to handle filling the controls and sending results back to the server yourself. (You can build more complex controls out of the simple ones that Unity provides so you could also build your own reusable data-aware controls.)
If you find UnityGUI's programmatic construction of your UI to be tedious, or need other controls, you might want to look at 3rd party add-ons like GUIX or bitverse-unity-gui. I'm sure there are others, and there is a good chance that the forthcoming Unity 3.0 release will also have new features as well.
I appreciate your kind answer, $$anonymous$$r Bampf! thank you.
Answer by Hola Soy Edu Feliz Navidad · Mar 28, 2015 at 05:03 PM
Now on Unity 4.6 and Unity 5 you can use the new UI System: http://unity3d.com/learn/tutorials/modules/beginner/ui
Your answer
Follow this Question
Related Questions
What fonts does the Unity Interface use? 4 Answers
Simple Menu(understanding GUI) 2 Answers
How can i let the user change some objets' material 0 Answers
Spawning gui buttons 1 Answer
Individually rotate GUI Elements? 4 Answers