AddComponentRecursively

Author: Daniel Brauer

Description
This editor script adds the option to add a component to an object and all its children. It checks for existing components, so no duplicates will be added.

Usage
Place this script in YourProject/Assets/Editor and the menu items will appear in the GameObject menu once it is compiled. Please note that you have to push return after entering the name of the component, otherwise it will not be registered when you push Add.