Howdy! To watch this entire Gametutor course please Register  or log in

GUI Styles for Editor Tools
Course Description
GUI Styles and GUI Skins are a key element to being successful when writing tools. These two components allow you to build up your tool user interfaces quickly and efficiently, without the need of re-writing your GUI code over and over again, or having to load up your own images using the Resources class. This course will go through the process of building up an Inspector editor, but using custom GUIStyles and custom GUI Skins. By the end of the course you will have a strong understanding of how you can use GUI Styles and Skins in your own tools developments.
Course Details
Difficulty: Intermediate
Category: Tools
Total Lessons: 7
Running Time: 1 hour 43 minutes
Date: 06/01/14
Course Files
This is a premium course and source files are available only to Rockstar members. Please Log In or Upgrade your account to unlock these files.
Locked Source File Icon
File Name: GaTu_Uni_UsingGUIStylesAndGuiSkin.zip
File Size: 1.54 MB
Complete Unity project including scripts and asset files. If it's in the video it's in the source files.
Course Lessons

1. Setting Up Your Scripting Environment

Lesson 1, Setting Up Your Scripting Environment
To get our development environment started, we will want to set up our folder structure and take a look at the scripts we will need to create in order to create an Inspector type editor, in Unity.

2. Give Me Some Style

Lesson 2, Give Me Some Style
With our scripts all set up let’s start to build out some custom GUI styles and apply our own custom graphics so we aren’t using Unity’s default GUI as our editor. This Lesson will be a basic start at using GUI Styles in the Unity 3D Game Engine.

3. Controlling Your Layout

Lesson 3, Controlling Your Layout
In any UI development, you will want to start to build up easy ways to control layouts of your GUI elements. This lesson will dive into how Unity uses its GUILayout class to help you develop custom layouts. By the end of this course we will have developed the main body of our User Interface as well as a title sequence.

4. Fancy Buttons

Lesson 4, Fancy Buttons
When working with the default buttons in Unity’s editor classes, you’ll notice that the hover states and click states don’t actually show up. Throughout this lesson we will take a look at how we can build our own custom buttons, which utilize their own hover and active states.

5. Fancy Sliders

Lesson 5, Fancy Sliders
Creating custom sliders and GUI skins for those sliders can be a bit tricky at first, if you have never done it before. This lesson will remove the mystery of how to use the features of a GUIStyle to help you create your own custom sliders.

6. GUI Skinning

Lesson 6, GUI Skinning
Now that we have learned the inner workings of custom GUI Styles, let take a look at what Unity provides us to make that process easier. Throughout this lesson we will learn how to utilize the GUISkin asset, to generate a set of custom GUI elements we can use over and over. This streamlines the process of creating User Interfaces for your tool’s and gives you more time to focus on the tool code, not the GUI code.

7. Making GUI Controls Modular

Lesson 7, Making GUI Controls Modular
To complete this course we will look at how Static classes can help us re-use our GUI code, so we don’t have to constantly write the same GUI code over and over again.