SceneDumper

Description
This script dumps the scene hierarchy to a text file. It dumps all game object recursively, starting with the selected objects. The text dump contains object names, hierarchy, and the names of all components.

This is useful for things like:
 * quick review of your scene structure
 * comparing the state of the scene from day to day or milestone to milestone
 * comparing two scenes
 * comparing the scene from before and during playback to see what objects and components are created dynamically
 * finding missing scripts in your scene (search the dump for "(null)")

For a more full-featured version of this script, including a custom editor window for better IDE integration, see http://zeroandone.ca/unity.

Usage
Save it as "SceneDumper.cs" below your project's Editor folder. You will now have a Debug menu containing a "Dump Scene" menu item. Select one or more objects in your scene hierarchy and select the menu item.

Future Work
Potential useful extensions to this script include:
 * a GUI for selecting what to dump
 * control over location of output file
 * use of System.Reflection to dump the fields and properties of components