Categories: Unity, C #, VS2015
Date Created: 2016-04-27 I. INTRODUCTION
The GUI is actually used many times in the previous chapters, but the usage is simple, this chapter systematically introduces the knowledge of the development of Unity 5.x's GUI (called Unitygui). Ii. key points of this chapter
For earlier versions of unity, it was generally necessary to use other GUI plugins (for example: NGUI) Because of the weak GUI design functionality provided by itself. However, for the Unity 5.x, it is OK to use Unity's own GUI (called Unitygui) because it already contains great functionality. In other words, the direct use of Unitygui is the recommended preferred approach, rather than the first consideration of other plug-ins to implement.
1. UI
Unitygui is the Unity 5.x built-in GUI creation system. It allows you to create different UI controls directly, as well as define the content and appearance of these controls.
2. GUI Style
GUI style is a set of custom properties in the Unity 5.x built-in Unitygui. A GUI style (GUI style) defines the appearance of a Unitygui control.
To add a style to more than one control, use the GUI skin instead of the GUI style.
3, Guiskin
Guiskin (GUI skin) is a set of GUI Styles that can be applied to all the GUI controls in the Unity 5.x built-in Unitygui. Each control type is defined by its own style (style).
Guiskin allows you to apply some kind of GUI style to the entire UI, rather than just a single control in the UI.
To create a guiskin, directly on the menu bar, select Resources (Assets)-Create GUI skins (GUI skins). Iii. examples of this chapter
All the examples in this chapter are in the Ch08demos project.
"Unity" chapter 8th GUI Development