Yes, pretty much the entire editor / inspector system is written in scripts like this. See here http://unity3d.com/support/documentation/Components/gui-ExtendingEditor.html for some examples.
↧