ImmediateWindow

Author: Nick Gravelyn

Description
Some times you just need to execute some code in the editor. Maybe you want to randomize some positions. Or you want to line some things up quick. It's a hassle to make a new script, create a menu item, and then go click that item. It's even more annoying if you only need this operation once or twice. Now you can just use the Immediate Window instead.

Usage
Place the code into a file called "ImmediateWindow.cs" in a folder called "Editor" in your project. Once compiled you'll see a new item under "Window" called "Immediate". Click that to open the immediate window. You can now type C# script code and execute it.

By default the script has visibility into the UnityEngine, UnityEditor, System.Collections, System.Collections.Generic, and System.Text namespaces (so you don't need to fully qualify types from those namespaces) but you can fully qualify other types you need or modify the script to include the using statements you want.