If you're talking about making an editor script run without having to press Play, then you want to take a look at the following:
http://unity3d.com/support/documentation/ScriptReference/ExecuteInEditMode.html
↧