Hi All
How can i run the Editor Window file in unity. When i run the below file it shows the error mono behaviour is not there. So how can i run the below files.
public class Boxes : EditorWindow {
[MenuItem( "Window/Boxes" )]
static void Init () {
Boxes window = (Boxes) EditorWindow.GetWindow( typeof( Boxes ) );
window.Show();
window.position = new Rect( 20, 80, 310, 300 );
}
void OnGUI () {
GUILayout.Box( "Default Box" );
GUI.color = Color.green;
GUILayout.Box( "Green Box" );
GUI.color = Color.red;
GUILayout.Box( "Red Box" );
}
}
Thanks in Advance