ToggleActiveRecursively

Original Author: Jonathan Czeck (aarku)  Javascript version: Daniel Brauer

Description
This editor script takes the current object selected in your hierarchy and toggles whether or not it is active. Then it sets the activeness of all its children to this.

Usage
Place this script in YourProject/Assets/Editor and a menu item will automatically appear in the Custom menu after it is compiled.The Javascript version places the menu item in the GameObject menu, and assigns it a shortcut of Command-T. The menu item will be disabled if nothing is selected.