Join Sue Blackman for an in-depth discussion in this video Scripting in-game menus, part of Unity 3D: 3.5 Essential Training.
So now that we've got the basics of Unity GUI, let's see about actually using it…in our little sampler game. Here is a few things we need to think about.…The GUI scripting could go on any object, but because of draw order we are…probably better off to keep it on a single script.…That way there is no mystery about who gets drawn on top of who.…So where to put the GUI scripting?…We've already got our escape code on the Game Manager in the MainLevel.…So let's plan on controlling all of our GUI from its Game Manager script.…
We'll go ahead and open the MainLevel scene now, and I'm going to switch back to…the 2 by 3 layout and double-click our MainLevel.…So let's start by opening the Game Manager script.…If I select my Game Manager object, I can find it quickly, double-click it open,…and let's see what we've got.…We don't need to bother with a custom GUI skin, so we won't need any new variables.…All we need is an OnGUI function.…
I am going to go out to my Code_Snippets and get it,…Exercise Files13/13-05/Code_Snippets.…
- Understanding game and level design theory
- Organizing your project in Unity
- Creating and transforming objects
- Setting up the geometry
- Painting in terrain, textures, and trees
- Adjusting the render settings
- Importing terrains
- Creating a first-person controller
- Creating materials and shaders
- Lighting the game
- Working with cameras and multiple views
- Animating characters and assets
- Creating fire with particle systems
- Managing the GUI (graphical user interface)
Skill Level Beginner
1. Exploring Unity 3D
2. Exploring the Terrain Editor
3. Creating the Environment
Publishing project settings3m 37s
4. Introducing Unity Scripting
5. In-Game Scripting
6. Working with GameObjects and Components
7. Exploring Prefabs
8. Using Imported Assets
9. Understanding Lighting
10. Keyframing Animation
11. Animating Skinned Meshes and Controlling Characters
12. Working with Cameras and Layers
13. Creating Game GUIs
14. Extra Techniques and Features
What's next1m 13s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.