static void Init() { MainEditor window = (MainEditor)EditorWindow.GetWindow(typeof(MainEditor)); window.position = new Rect(0, 20, 800, 400); window.Crear(); window.Show(); }