private static void CreateLightingWindow()
{
LightingWindow window = EditorWindow.GetWindow<LightingWindow>();
window.minSize = new Vector2(300f, 360f);
window.Show();
}
private void DrawBakeMode() { if (!showBakeMode) { return; } if (GUILayout.Button(GetBakeModeIcon(m_autoLightBakingOn), Styles.statusIcon)) { Event.current.Use(); LightingWindow.CreateLightingWindow(); } var buttonRect = GUILayoutUtility.GetLastRect(); EditorGUIUtility.AddCursorRect(buttonRect, MouseCursor.Link); }