"Unity" chapter 8th GUI Development

Source: Internet
Author: User
Tags unity 5

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.