static void CreateWindow() { Rect rect = new Rect(0, 0, 500, 300); window = (LightingWindow)EditorWindow.GetWindowWithRect(typeof(LightingWindow), rect, true, "光照"); if (window.Init()) { window.Show(); } }