Join Michael House for an in-depth discussion in this video The Immediate window, part of Advanced Unity 3D Game Programming.
…In this video, I'm going to teach you about…the immediate window and its uses for debugging.…The immediate window allows us to execute a line of…code, taking into account the current state of the program.…This means that we can write snippets of…code that use the current values of our variables.…This is great for situations where you want to say,…what would happen if I tried it this way?…Or a quick way to find out what the value…inside an array is or the properties of an object are.…We need to pause the execution of the code…in order to get access to the immediate window.…So we're going to set our break point, and attach the debugger.…
And play scene.…So now we have access to the immediate window down here, by the call stack.…We can do little snippets of code like two…plus two or we can do the Mathf power function.…When passing in parameters you need to ensure that you use the…float designator for floats, otherwise it's going to give you an error.…Not going to automatically convert values for you like it does in the compiler.…
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.
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.