Hi,
Personally I think Unity UI is easier to use than legacy Unity GUI. Unity also has a good set of
Unity UI tutorials.
If you want to use legacy Unity GUI with the Dialogue System's helper components, here's the basic process:
1. Create a
GUI Root GameObject. (GameObject > Create Other > Dialogue System > Unity GUI > Root)
2. Assign your GUI Skin (e.g., Necromancer GUI) to the GUI Root's Gui Skin field.
3. Click on the GUI Root GameObject, and create a
GUI Button. (GameObject > Create Other > Dialogue System > Unity GUI > Button)
4. Inspect the button. Use the Scaled Rect section to define what area of the screen the button occupies. Here are some recommended steps:
- Expand Scaled Rect > Width. Set Scale to Pixel. Set Value to 160.
- Expand Scaled Rect > Height. Set Scale to Pixel. Set Value to 30. You should now see the button in the upper left of the screen.
- Change Origin and Alignment to Bottom Center. This will move the button to the bottom center of the screen. You can play around with these settings as well as the X and Y offsets below them to position the button exactly where you want.
With Scaled Rects, you can specify sizes in absolute pixels (Scale=Pixel) or relative to the screen size (Scale=Normalized). If you want the button width to be 20% of the screen width, change the Width to Normalized and 0.2.
5. Set the button's Text field to "Quit".
6. Optional: Set the button's Gui Style Name field to a style in your GUI Skin, such as "ShortButton". Otherwise it will use the default button style.
7. Now you need to hook the button up to some action. Let's say you have a script with a method "QuitToMenu" that returns to the main menu. At the bottom of the button's inspector, assign the script's GameObject to the Target field. Change the Message to "QuitToMenu".
EDIT: On re-reading your reply, I think you may be asking something different. Are you using the FeatureDemo script? If so, please feel free to customize it -- for example, in the WindowFunction method, comment out buttons that you don't want to show.
The FeatureDemo script was just written to drive the demo scenes. If you want a more robust menu system, I recommend the Dialogue System Menu Template, which you can download on the
Dialogue System Extras page.