x


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?

more ▼

asked Apr 19 '10 at 07:30 AM

sizers gravatar image

sizers
16 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Apr 19 '10 at 11:40 AM

Bampf gravatar image

Bampf
5k 8 19 49

I appreciate your kind answer, Mr Bampf! thank you.

Apr 20 '10 at 05:36 AM sizers
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x89
x38
x17

asked: Apr 19 '10 at 07:30 AM

Seen: 5801 times

Last Updated: Apr 19 '10 at 07:30 AM