Join Michael House for an in-depth discussion in this video Combo boxes, part of Advanced Unity: 3D Game Programming.
…I this video i am going to show you how to create a typical comma box.…A comma box is a common feature in many GUIs,…but missing in the standard GUI controls provided by Unity.…Comma boxes are sorted by selected on or many items from a list.…The list can be a list of anything, and it can have multiple uses.…For example it could contain strings which define which settings to use.…Or it could contain game objects that would be your quest reward for the player.…This means we will want to be able to associate an object…with each object in the list to make it easier to use.…We will also want to know when an item has been selected.…
Knowing when an item has been selected means we can respond for example…by displaying more information about that choice,…or previewing the selection in some way.…Sounds like a job for events.…Let's see what this might look like.…Here we have a comment box that's going to implement the scriptable item class.…We're not using mono behavior, because we're not going to use any…of the mono behavior functionality, so we don't need to include it.…
NOTE: This course requires Unity 4.5.5. The newer versions of Unity have done away with the GUI system used in this course, so the interfaces included for many of the scenes will not work with 4.6 and higher. You can download Unity 4.5.5 at http://unity3d.com/get-unity/download/archive.
- Enabling/disabling with scripts
- Translating, rotating, and scaling objects with scripts
- Working with mouse and keyboard input
- Creating custom GUI controls like progress bars
- Loading assets with scripts
- Saving games
- Creating prefabs dynamically
- Making remote procedure calls
- Synchronizing object transforms
- Finding slow code
- Optimizing data access
- Extending the editor
Skill Level Advanced
Q: In the Chapter 3 file EntityLoader.cs, I get an error: DirectoryNotFoundException: Directory 'Assets\' not found. Removing the backslash after 'Assets' fixes it, but then I run into a different error. How do I fix this?
Q: What version of Unity does this course cover?
A: This course requires Unity 4.5.5. The newer versions of Unity have done away with the GUI system used in this course, so the interfaces included for many of the scenes will not work with 4.6 and higher. You can download Unity 4.5.5 at http://unity3d.com/get-unity/download/archive.
Q: The game object in the first chapter's Mouse Input Raycasting sample doesn't appear to follow the mouse. What's wrong?
A: Please enable the Box Collider component (by activating the checkbox next to the component name) on the game object. This is not explicitly mentioned in the video, but it will ensure the raycasts collide with the game object.
Unity 3D: 3.5 Essential Trainingwith Sue Blackman10h 52m Beginner
Animating Characters with Mecanim in Unity 3Dwith Sue Blackman5h 28m Intermediate
Animating for Unity 3D in 3ds Maxwith Adam Crespi1h 19m Intermediate
1. Basic Scripting
2. Using the Debugger
An advanced prefab system6m 12s
4. Advanced Scripting
5. Dynamic Terrain
6. Creating Custom GUI Controls
9. Extending the Editor
- 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.