EditorWindow ingame

I’m making a serious game, and I want to use EditorWindows ingame. But when I try to build, I get:

“The type or namespace name `MyWindow’
could not be found. Are you missing a
using directive or an assembly
reference?”

If I move MyWindow to Editor folder, I miss the reference on my main class to instantiate my custom editor window.

Any ideias?
Thanks

Anything in the UnityEditor namespace, such as the EditorWindow class, is only available in the editor. It is not included with a built game.

If you want UI in your game, you’ll have to build it separately. Sorry. NGUI is a pretty solid and popular plugin for this purpose. Unity itself is advertising new and improved GUI support in upcoming versions.